Errors after upgrading from 0.8.2

Having trouble installing serendipity?
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Errors after upgrading from 0.8.2

Post 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?
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Errors after upgrading from 0.8.2

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post 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.
=Don=
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post 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?
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply