Hi,
Not sure whether to post this here, but since ContentExpress is no longer being developed and their forum is also dead I'll try. I'm struggling to upgrade a website from 0.7.2.6 to 0.7.6.4, upgrading our 3rd party modules at the same time. To minimize downtime I copied the site and database over to a test environment, where MySQL, PHP, apache2.2 and Postnuke are all in the latest versions and ran the upgrade from upgrade.php there. Everything works fine on the test machine. I then copied database and site back to the webserver, where the original is running on apache 1.3 with PHP 4.3. MySQL is already upgraded. I have a fresh install of Apache 2.2 there compiled and working against php5.2. Everything seems to work okay except for the actual content (rendered from ContentExpress.
index.html is set to point to ContentExpress, which is unabe to load anything. Trying to view anything directly from the ContentExpress configuration page also shows just blank pages. I've tried relaxing all directory permissions, and double checked that the complete directory structure has been copied directly. the apache error log is giving me this (my asterix's over the URL):
PHP Catchable fatal error: Object of class ContentExpress could
not be converted to string in /usr/local/apache2/htdocs/Portal_PN_764/includes/pnMod.php on line 825, referer: http://www.****.com/index.php?module=Admin&type=admin&func=adminpanel
[Mon Jan 15 10:49:00 2007] [error] [client ***.***.***.***] PHP Catchable fatal error: Object of class ContentExpress could
not be converted to string in /usr/local/apache2/htdocs/Portal_PN_764/includes/pnMod.php on line 825, referer: http://www.****.com/index.php?module=ContentExpress&type=admin
[Mon Jan 15 10:49:33 2007] [error] [client ***.***.***.***] PHP Catchable fatal error: Object of class ContentExpress could
not be converted to string in /usr/local/apache2/htdocs/Portal_PN_764/includes/pnMod.php on line 825, referer: http://www.****.com/index.php?module=ContentExpress&type=admin&func=editcontent&ceid=4
I did read somewhere that ContentExpress may be memory hungry, but the errors above don't seem to indicate that, and the webserver has plenty of free memory, and much more than the VM I used to do the conversion. I am wondering whether moving the site between machines, and changing the fs paths after doing the upgrade is causing the problem? The move of version 7.2.6 over to the test/upgrade machine didn't cause problems.
Can anyone help?
Cheers!
Marius
- Teb answered »PNphpBB2 and menu tree« 20:15h
- marc@marcpare.com posted »Adding an "About Us" page« 19:33h
- animateclay answered »SafeHTML output filter and youtube« 18:42h
- videokid answered »caching« 18:31h
- Wendell answered »pagesetter pdf output« 16:34h
- Fredricn posted »Mediashare mysql instalation issue« 13:38h
- slam answered »Theme by iThinkMedia.com footer - Beacon for Hackers?« 09:49h
Login
ContentExpress renders blank pages after upgrade/move
-
- Rank: Registered User
- Registered: 15.01.07
- last visit: 15.01.07
- Posts: 1
-
- Rank: Registered User
- Registered: 31.01.03
- last visit: 19.07.07
- Posts: 1
To fix my copy I patched the
modules/ContentExpress/pnclass/ContentExpress.php file
and add the following function to the class:
function __toString() {
return "Need to define __toString() method to get some real content";
}
This solution was borrowed from http://www.zend.com/forums/index.php?t=msg&goto=11465&S=9d915fe555ddc9828a136bb3c85a0f6a#msg_11465
-
- Rank: Helper
- Registered: 16.08.02
- last visit: 31.05.09
- Posts: 152
Thank you for posting this solution. I was bitten by the exact same bug after a site move.
- Moderated by :
- Support
Users online
This list is based on the users active over the last 60 minutes.
