Page 1 of 2

PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Mon Jun 07, 2010 6:39 pm
by tmar89
I upgraded from PHP 5.2.4 to 5.2.13 and CMS from 1.6.7 to 1.7.1 and now I get this at the top of all pages:

Notice: Undefined index: secure in /var/www/html/lib/classes/class.content.inc.php on line 956

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Mon Jun 07, 2010 8:57 pm
by baresi
Could be

http://forum.cmsmadesimple.org/index.ph ... #msg212469

EDIT: I noticed you have posted there yourself  :D

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Tue Jun 08, 2010 2:43 am
by Gu
My upgrade(1.7-1.7.1 php5.2.11-php5.3) was very similar as you, there is the process:

Update to php5.3 on your sever first
Copy 1.7.1 to your preview www folder (overwrite)
Run install/upgrade.php in browser
done.

i suggest you'd better upgrade to 1.7 from your 1.6.7 setp by step first, and update php version befor upgrade cmsms, especial 1.7. I think the upgrade program can fix some error about php compatibility.

Cheers
Gu

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 1:15 pm
by tmar89
I upgraded PHP before I upgraded CMS

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 3:48 pm
by tmar89
Any further thoughts on this?  I've tried creating new pages but I still get the same error message in PHP.  I can disable displaying errors in the php ini but I rather fix the error instead of hiding it.

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 4:32 pm
by Rolf
Somebody got a link here?

Rolf  :)

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 4:59 pm
by tmar89
Rolf wrote: Somebody got a link here?

Rolf  :)
Link to my webserver?

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 5:01 pm
by Rolf
Yep, you can pm me if you want...

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 5:13 pm
by Rolf
1. Please post your System Information here.

2. I find this in your pagesource:

Code: Select all

           <div id="newscolumn">
<!--      <br />
<b>Warning</b>:  Parameter days is not known by module GoogleCalendar dropped in <b>/var/www/html/lib/misc.functions.php</b> on line <b>1418</b><br />
<br />
<b>Warning</b>:  Parameter template is not known by module GoogleCalendar dropped in <b>/var/www/html/lib/misc.functions.php</b> on line <b>1418</b><br />
<h3>Upcoming Events</h3>

<div id="thisweek">
<dl>
</dl>
</div> -->
        <h3>Upcoming Events</h3>
Try to uninstall GoogleCalendar or delete it out of your template.

Rolf

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Wed Jun 09, 2010 5:18 pm
by tmar89
Uninstalled Google Calendar

----------------------------------------------

Cms Version: 1.7.1

Installed Modules:

CMSMailer: 2.0
FileManager: 1.0.2
MenuManager: 1.6.3
ModuleManager: 1.3.3
News: 2.10.5
nuSOAP: 1.0.1
Printing: 1.0.4
Search: 1.6.3
ThemeManager: 1.1.1
TinyMCE: 2.7.0
Album: 0.9.3
CGExtensions: 1.18.8
Captcha: 0.4
CGFeedMaker: 1.0.11
FormBuilder: 0.6.2

Config Information:

php_memory_limit:
process_whole_template: true
max_upload_size: 10000000
default_upload_permission: 664
assume_mod_rewrite: true
page_extension:
internal_pretty_urls: false
use_hierarchy: true

Php Information:

phpversion: 5.2.13
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 64M
max_execution_time: 60
safe_mode: Off (False)
session_save_path: /var/lib/php/session (0770)
session_use_cookies: On (True)

Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.84

----------------------------------------------

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Thu Jun 10, 2010 3:10 pm
by tmar89
any further thoughts?

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Thu Jun 10, 2010 8:21 pm
by Rolf
The only thing I can think of at the moment, is something went wrong during the upgrade of the database...
Can you put back a backup and try to upgrade again?

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Thu Jun 10, 2010 8:44 pm
by tmar89
No, I can't. 

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Fri Jun 11, 2010 5:52 pm
by tmar89
In the database, there is the "cms_content" table which is missing a "secure" column of data.  Does anyone have the default value for this column so maybe I can just create it manually with default values?

Re: PHP error after upgrading to CMS 1.7.1 and PHP 5.2.13

Posted: Sat Jun 12, 2010 9:10 am
by NaN
Did you even execute the upgrade.php after uploading the files of CMSms 1.7.1?