Problem with 2.0.0 snapshot from May 16 02:20

Please report bugs here!

Moderator: Thorsten

Post Reply
CZ_Vilda
Posts: 1
Joined: Tue May 16, 2006 10:46 am

Problem with 2.0.0 snapshot from May 16 02:20

Post by CZ_Vilda »

Code: Select all

Warning: require_once(inc/Category.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/help_test/index.php on line 52

Fatal error: require_once() [function.require]: Failed opening required 'inc/Category.php' (include_path='.:/usr/share/php') in /var/www/help_test/index.php on line 52
Case sensitive problem on case sensitvie systems (linux/unix) ;)
The file Category.php does not exist boys ;) Rename file category.php to Category.php or use on line 52 in index.php:

Code: Select all

require_once(inc/category.php)
instead of

Code: Select all

require_once(inc/Category.php)
and it continues...

Code: Select all

Warning: require_once(/var/www/help_test/inc/category.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/help_test/admin/index.php on line 31

Fatal error: require_once() [function.require]: Failed opening required '/var/www/help_test/inc/category.php' (include_path='.:/usr/share/php') in /var/www/help_test/admin/index.php on line 31
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
thanks for your post BUT the 2.0.x coming from the CVS is not currently running at all. E.g.: the uppercase in Category.php means a class code reviewing... There're many other issues on this version that will be fixed in the next weeks.
Stay tuned! Keep in touch with the 2.0.x development progress also via Thorsten's devblog :wink:.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
kai
Posts: 82
Joined: Sun Jul 03, 2005 5:39 pm

Post by kai »

Ok, I was just about to ask if there is interest in getting any reports on 2.0 when I read this. So I just add my findings in this thread. If you want some more testing or codechecking I can certainly do.

I upgraded (just for testing, no production, but from production code and db) from 1.5-RC1 to 2.0.0 of May 27. Upgrade experience:
- didn't like safe_mode, so I added those directories manually
- after this everything worked ok until this step:

Code: Select all

Error: Unknown column 'PMF_SOLUTION_ID_START_VALUE' in 'field list'
Query:

UPDATE faqdata SET solution_id = PMF_SOLUTION_ID_START_VALUE WHERE id = 1 AND lang = 'de'
There's either a constant or variable missing/not correctly named I suppose.

I went ahead nevertheless and hit the same problem as CZ_Vilda. Copying a Category.php in the directory solved that. I notice that there are other files with uppercase, f.i. "Faq.php". Looks like you are developing on Windows. Please, use all-lowercase filenames, this eliminates any such problems!

The FAQ displays now quite okay, "everything" seems to be there except for my layout, of course ;-)
Next problem I found was that I cannot login. I tried even sending me a password, no chance. I suppose this is a known problem?

Other general problems:
- usage of mysql_pconnect. I noticed this already with the older versions. Please make this configurable and make mysql_connect the default. mysql_pconnect is theoretically a nice option, in reality it leaves a lot of dead mysql connections around that just take ressources. Persistent connections make only sense on a very high-volume machine with lots of RAM.

- categories are still sorted by id instead of alphabetical. This change is easily done (I did it for my 1.5 setup) and should be the default.

I read in the devblog that TinyMCE is now the editor. That's a good decision I think. I added it to my 1.5 installation without problems (I had to throw out the internal links dropdown, though). In general, it's not clear to me where the 2.0 is heading. There isn't much on the devblog about it. From what I see now it doesn't look much different from 1.5 or 1.6 and 1.6 seems to have actually more functionality. Wouldn't it make more sense to "organically" grow from 1.6 on and add the TinyMCE or any other major changes (which i haven't seen, but they may be there) to that tree in some point in time?

Anyway, what I'm most interested in in any future versions is to make it easier to apply layout changes than it is now. I had to not only change templates but also code to make it show the layout I needed. I hope that this can be avoided some day because it makes updating a nuisance. I'd be happy to outline any changes that would fit better, of course, I can make this only for my own requirements.

I'm still happy with my 1.5 installation and guess I will stay with it for a while. Thanks for the enormous work so far, you can't fit everything!
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
kai wrote:I upgraded (just for testing, no production, but from production code and db) from 1.5-RC1 to 2.0.0 of May 27. Upgrade experience:
- didn't like safe_mode, so I added those directories manually
- after this everything worked ok until this step:

Code: Select all

Error: Unknown column 'PMF_SOLUTION_ID_START_VALUE' in 'field list'
Query:

UPDATE faqdata SET solution_id = PMF_SOLUTION_ID_START_VALUE WHERE id = 1 AND lang = 'de'
There's either a constant or variable missing/not correctly named I suppose.
Please, as said before, the 2.0.x coming from CVS has several blocking issues: e.g. the upgrade stage is still not fully implemented and this is the reason why you cannot log in. We (mainly Lars) have introduced a complex Auth Class design for managing both authentication and autorization (e.g.: for managing groups and users access to faq records)

kai wrote:I went ahead nevertheless and hit the same problem as CZ_Vilda. Copying a Category.php in the directory solved that. I notice that there are other files with uppercase, f.i. "Faq.php". Looks like you are developing on Windows. Please, use all-lowercase filenames, this eliminates any such problems!
For 2.0.x, we decided to rewrite everything with a better OOP design so basically each file starting with an uppercase is a PMF class. That is to say, we're not doing this change just for exposing the code to capitals issues :wink:. FYI, I'm developing PMF using Linux and running it using both Linux and Windows.

kai wrote:I'm still happy with my 1.5 installation and guess I will stay with it for a while.
You could give a chance to 1.6.x mainly for 2 reasons:
- it has some cool feature besides the spam protection
- it has both security and new features fixing
kai wrote:Thanks for the enormous work so far, you can't fit everything!
You welcome!

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

thanks for testing phpMyFAQ 2.0.0-dev. I hope to work more on it so that it will be usable.

About the new editor I'm still testing TinyMCE and FCKEditor which is much better since the 2.3 beta release.
kai wrote:Anyway, what I'm most interested in in any future versions is to make it easier to apply layout changes than it is now. I had to not only change templates but also code to make it show the layout I needed. I hope that this can be avoided some day because it makes updating a nuisance. I'd be happy to outline any changes that would fit better, of course, I can make this only for my own requirements.
What changes did you in the code? If you tell me what you have to change we can try to avoid that in 2.0.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kai
Posts: 82
Joined: Sun Jul 03, 2005 5:39 pm

Post by kai »

What changes did you in the code? If you tell me what you have to change we can try to avoid that in 2.0.
Don't know, it's been too long. I made several changes by adding some ids and classes, so I could reference more parts of the layout via CSS. I changed to TinyMCE. I added an SSL detection which will offer a link to the Administration in the top navigation. I changed the output order of categories to alphabetical. Maybe more, a year passed by, I really don't remember all of it. And I didn't use the FAQ for quite some time and only started recently adding content again, so I'm not too familiar with what it looked like before I changed it.

I'm quite willing to adapt my changes to 2.0 once it's in a somewhat usable state (if one can login) and then tell you what I did and why.

What I'm missing at the moment most in functionality are three things:
- cannot move categories (should be simple to add that)
- items that are in more than one category are listed more than once in the top and last lists (should be simple to add that)
- cannot associate to more than one language (I would like to write some articles in English and associate them to English and German, so I don't need to write a German one as well, but I would like the article display for German visitors) (that may be quite difficult to implement).

If these are not in 2.0 I may try to put them in once I have added my older changes to 2.0.

If you were so kind and add a reply to this thread once you think 2.0 is usable at least for beta testing I will try it out again. I have this thread on notification.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you could send me your changes by e-mail if you like.
- cannot move categories (should be simple to add that)
That is possible in 1.5.x and later and so in 2.0.
- items that are in more than one category are listed more than once in the top and last lists (should be simple to add that)
This is fixed since ages.
- cannot associate to more than one language (I would like to write some articles in English and associate them to English and German, so I don't need to write a German one as well, but I would like the article display for German visitors) (that may be quite difficult to implement).
This was fixed during the 1.6.0 release cycle and should be working in 2.0, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply