Page 1 of 1

Errors after upgrading from 0.8.2

Posted: Fri Jul 25, 2008 4:16 pm
by Don Chambers
Upgraded a s9y installation from 0.8.2 to 1.3.x - now getting the following error on the admin page:

Code: Select all

Notice: Undefined variable: template_loaded_config in /path/include/functions_smarty.inc.php on line 965
Notice: Undefined index: no_create in /path/serendipity_admin.php on line 235
Similar nocreate error listed before each plugin:

Code: Select all

Notice: Undefined index: no_create in /path/include/functions_config.inc.php on line 1126.
So.... what do I need to do?

Re: Errors after upgrading from 0.8.2

Posted: Fri Jul 25, 2008 4:27 pm
by garvinhicking
Hi!

Simply tune down your PHP service do not show E_NOTICES, in production environments this is not suggested. Change the php.ini error_reporting for that.

s9y has a few places where strict variable initialization is not done, so those errors messages are nothing that you should be concerned about when the rest is working...

Regards,
Garvin

Posted: Fri Jul 25, 2008 5:14 pm
by Don Chambers
Thanks Garvin. I do not believe I have access to php.ini on this shared server. Since this upgrade was performed only to get the database up to 1.3, and will soon be exported and reimported on a new server, I am going to leave it alone for now.

Posted: Tue Sep 16, 2008 6:39 pm
by Don Chambers
Garvin - I have yet to find a way to suppress these messages.... I see them in the backend, creating entries, configuring plugins, etc....

However, the biggest problem just came to my attention. When trying to insert images from the media manager, I get the usual media manager window, but there is nothing in it other than the following error:

Code: Select all

Notice: Undefined variable: template_loaded_config in /path/serendipity/include/functions_smarty.inc.php on line 965 Notice: Undefined index: page in /path/serendipity/serendipity_admin_image_selector.php on line 30
There is no problem accessing the media library from the admin sidebar, and there does not appear to be any problems adding media either.

ideas?

Posted: Thu Sep 18, 2008 10:12 am
by garvinhicking
Hi!

Those undefined indices are really stemming from a php.ini directive that sets too strict PHP outputs, you must comb them down. A lot of PHP applications, s9y included, do not behave properly because not all variables are initialised. That's a big pro for PHP, so it should not choke on that.

As for the popup: Have you tried to view the HTML Sourcecode and see if it contains any bad path references or so?

Regards,
Garvin