Page 1 of 1
PHP error after upgrade to 1.6 (?)
Posted: Sat Aug 22, 2009 3:34 pm
by Maarten
Hi,
Problem
One of my customers have several sites on 1.6.4 and 1.6.3. This week I discovered that the news links that are on the frontpage lead to a page with the following php error. The error is on all three the websites at the same place when you click a link to a full news article.
Fatal error: Call to a member function Id() on a non-object in /home/username/domains/xxxxxxx.com/public_html/plugins/function.breadcrumbs.php on line 119
Line 119
Code: Select all
if ($onecontent->Id() != $thispage && $onecontent->Type() != 'seperator') {
I tried several things:
Remove breadcrumbs
When I remove the breadcrums out of the template I get an error from the menumager (also php)
Fatal error: Call to a member function Hierarchy() on a non-object in /home/username/domains/exxxxxxxx.com/public_html/modules/MenuManager/action.default.php on line 90
I reset the news templates
No difference
I copied the news templates from another site
No difference
I copied the breadcrumbs file from an old backup
No difference
I downloaded the checksum (base) and compared it in the system
I got the following message
1 Files Not found
Files Not found:
�@�LH�Z�;�NZ�ܕ˘�M�0Y�(L�������=f�M��fZ���F��m(.'qw���B$�9�ŋ����� �6���orO�O�ΐ����nJM��8�j>�9�=��F]�K�$I���k�m13I�〈K���-̀+2��>h�\C��n�KJ���� ��E���k=�QeB��hO�22�� ���z[S�}P N1����u���|�e�k�O-�%'��ޔw_��V̺�̵{�/{���)���nK�
I upgraded one of the sites from 1.6.3 to 1.6.4
No difference
I reuploaded all the files multiple times
No difference
I think this happend after the upgrade to 1.6, but that I just noticed it. Is there anyone with similar experiences or maybe a solution?
Thanks!
Re: PHP error after upgrade to 1.6 (?)
Posted: Sat Aug 22, 2009 4:57 pm
by Nullig
What version of PHP?
Nullig
Re: PHP error after upgrade to 1.6 (?)
Posted: Sat Aug 22, 2009 4:59 pm
by Maarten
Thanks Nullig, PHP Version 5.2.10
Re: PHP error after upgrade to 1.6 (?)
Posted: Mon Aug 24, 2009 4:39 pm
by Pierre M.
System Info ?
You have run System Verification and it gives 1 missing file. The report is "obfuscated", which file is it ? Could you try to reupload this file and get rid off the missing file report ?
Is the issue only about news ? Have you tried reinstalling the news module ?
Pierre M.
Re: PHP error after upgrade to 1.6 (?)
Posted: Tue Aug 25, 2009 3:07 pm
by Maarten
Okay I reinstalled the news module on all three websites. At the first website it does not help, here is the system info for that websites.
----------------------------------------------
Cms Version: 1.6.4
Installed Modules:
CMSMailer: 1.73.14
FileManager: 1.0.1
MenuManager: 1.6.1
ModuleManager: 1.3.1
News: 2.10.2
nuSOAP: 1.0.1
Printing: 1.0.2
Search: 1.6.1
ThemeManager: 1.1.1
TinyMCE: 2.5.1
Banners: 2.1.0
FormBuilder: 0.4.4
CGSimpleSmarty: 1.3
CGSimpleSmarty: 1.3
MovedPages: 0.1
CGExtensions: 1.15.2
CGExtensions: 1.15.2
NMS: 2.2.2
Config Information:
php_memory_limit:
process_whole_template: false
max_upload_size: 32000000
default_upload_permission: 664
assume_mod_rewrite: true
page_extension: .html
internal_pretty_urls: false
use_hierarchy: true
Php Information:
phpversion: 5.2.10
md5_function: Aan (Waar)
gd_version: 2
tempnam_function: Aan (Waar)
magic_quotes_runtime: Uit (Nee)
memory_limit: 128M
max_execution_time: 30
safe_mode: Uit (Nee)
session_save_path: /tmp (1777)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.81
----------------------------------------------
On the other two websites it seemed to have resolved something. The news page turn up but with a 404 error. If I disable the 404 warning to be handled by CMSMS I just get the server 404 warning. The 404 error is in the title and as a h2 on the page. See the attached screenshot.
This is the information from that site
----------------------------------------------
Cms Version: 1.6.4
Installed Modules:
CMSMailer: 1.73.14
FileManager: 1.0.1
MenuManager: 1.6.1
ModuleManager: 1.3.1
News: 2.10.2
nuSOAP: 1.0.1
Printing: 1.0.2
Search: 1.6.1
ThemeManager: 1.1.1
TinyMCE: 2.5.1
Banners: 2.1.0
FormBuilder: 0.4.4
CGExtensions: 1.15.3
Config Information:
php_memory_limit:
process_whole_template: false
max_upload_size: 32000000
default_upload_permission: 664
assume_mod_rewrite: true
page_extension: .html
internal_pretty_urls: false
use_hierarchy: true
Php Information:
phpversion: 5.2.10
md5_function: Aan (Waar)
gd_version: 2
tempnam_function: Aan (Waar)
magic_quotes_runtime: Uit (Nee)
memory_limit: 128M
max_execution_time: 30
safe_mode: Uit (Nee)
session_save_path: /tmp (1777)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.81
----------------------------------------------
The problem is indeed only with the news module as stated in the Topic Start. I don' t know that file is missing because I can' t get a clear error. I replaced all files with a 1.6.4 install multiple times, so any missing files should be on the server.
Re: PHP error after upgrade to 1.6 (?)
Posted: Wed Aug 26, 2009 4:12 pm
by Pierre M.
Hello again,
the screenshots shows the news module working OK (it is displaying one news summary). The 404 is about something else ?
CGSimpleSmarty: 1.3
CGSimpleSmarty: 1.3
MovedPages: 0.1
CGExtensions: 1.15.2
CGExtensions: 1.15.2
Weird duplication. Avoid such oddness.
BTW I'm not sure the MovedPages module is still 1.4+ compatible.
How is System Verification after your "replaced all files with a 1.6.4 install multiple times, so any missing files should be on the server" ?
Pierre M.
Re: PHP error after upgrade to 1.6 (?)
Posted: Wed Aug 26, 2009 5:47 pm
by Maarten
Hi Pierre,
Thank you for your continued help. I have no idea where the 404 is coming from. It's not a missing image. As I see it the system is really missing the page it is displaying because if you turn the 404 of CMSMS off the server error shows. I will look into the strange modules, thanks for noticing that. I missed it!
Site 1 has the following report after the checksum:
1 Bestanden niet gevonden (files not found)
Bestanden niet gevonden:
/tmp/cache/SITEDOWN
331 Bestanden md5sum check komt niet overeen: (Means checksum does not match)
Site 2
3 Bestanden niet gevonden
Bestanden niet gevonden:
/tmp/cache/SITEDOWN
/tmp/cache/index.html
/tmp/templates_c/index.html
329 Bestanden md5sum check komt niet overeen:
Site 3
3 Files Not found
Files Not found:
/tmp/cache/SITEDOWN
/tmp/cache/index.html
/tmp/templates_c/index.html
329 Files failed md5sum check:
If you don't mind I can PM you the links so can take a look and see the problem in action. I'm am not allowed to share the links in public.
I got an error: The message exceeds the maximum allowed length (20000 characters).
So I shortend the md5 checksum
Re: PHP error after upgrade to 1.6 (?)
Posted: Thu Aug 27, 2009 9:46 pm
by Maarten
I went back to a backup with CMS Made Simple version 1.5.3. That worked. The backup with version 1.6 didn't so it probably goes wrong with the 1.6 release. I tried to upgrade again after restoring the backup but that failed. I have seen quite some problems with cmsms installs but this one seems insolvable.
Re: PHP error after upgrade to 1.6 (?)
Posted: Fri Aug 28, 2009 2:33 pm
by Pierre M.
How do the three hosting places differ ? Two prove CMSms is OK and the "wrong" one must have some problem somewhere.
Pierre M.
Re: PHP error after upgrade to 1.6 (?)
Posted: Fri Aug 28, 2009 7:12 pm
by Maarten
The three websites are all hosted on the same server. It' s not likely that there is something wrong with the server configuration because there are several other sites running CMS Made Simple perfectly.
I now returned to the setup with 1.6.4 because besides the security problem, some other problems appeared with the old version,
Re: PHP error after upgrade to 1.6 (?)
Posted: Wed Sep 02, 2009 3:07 pm
by calguy1000
I checked into this problem and it's due to the changes in content types that have occurred over the various versions of CMSMS.
In CMSMS 1.2.1 or thereabouts we deprecated the News content type, and warned people that they should not use it.
in CMSMS 1.3.1 we removed it completely
in CMSMS 1.6 we completely re-worked the content type stuff
So people that were using the news content type and didn't heed the instructions, or did a big upgrade from an old version to 1.6.x could have a problem where there was a news content type page stored in the database, but the listcontent stuff would not show it. As well, the system would not be able to generate a content object for that page, and could generate all kinds of errors.
The solution to this was to modify the database to change all newcontent type pages to 'content'.