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
- espaan responded to »Links for Categories in Content« 09:31 AM
- HalbrookTech responded to »Flash Slideshow in Andreas08 Theme Header - LOAD FAIL« 08:58 AM
- espaan responded to »PN 0.764 to Zikula 1.1.2 (migration) Internal Server Error« 07:18 AM
- Paustian responded to »Clip & Form validation« 02. Feb
- ccandreva responded to »PostWrap for zikula 1.2.8« 02. Feb
- kmorrise responded to »IE CSS hack« 28. Jan
- MarcPare responded to »Remove "CoZi" and replace with "gitHub"?« 27. Jan
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
ContentExpress renders blank pages after upgrade/move
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jul 19, 2007
- 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: Softmore
- Registered: Aug 16, 2002
- Last visit: Oct 21, 2009
- Posts: 147
Thank you for posting this solution. I was bitten by the exact same bug after a site move. -
- Rank: Softmore
- Registered: Apr 05, 2004
- Last visit: Apr 10, 2010
- Posts: 132
Just tripped across this, after users reported blank pages. Looks like the cause of the problem is with PHP5.2 - everything was working fine t'other day, then I manually upgraded PHP (Centos5 still contains 5.0, even in 2010).
--
Adrian Chapman
Webmaster
Citroen Car Club
www.CitroenCarClub.org.uk -
- Rank: Developer
- Registered: Dec 31, 1969
- Posts: 6840
Sites using CE should have shifted over to something better maintained along time ago, It's been a long time, but seems like pages, pagemaster & even content could handle it better now, it would require some work to move the data, since the module is no longer functional, but would be a better choice than trying to make an outdated, likely insecure module continue to function.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1911
Quote
since the module is no longer functional
actually I am still using CE with Zikula 1.2.2 on one site :D -
- Rank: Developer
- Registered: Dec 31, 1969
- Posts: 6840
Cool, then we have a test bed to create an import. It's been a long time since I used CE (I did along time ago). It CAN be replaced by PS/PM/Pages with some work now, right?
edited by: HalbrookTech, datetimebrief
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1911
Quote
It CAN be replaced by PS/PM/Pages with some work now, right?
Functionally, I expect it can. It is just that the migration isn't easy, hence, I have not attempted it. (it is manual) -
- Rank: Developer
- Registered: Dec 31, 1969
- Posts: 6840
I may install it on my Virtualmachine next time I launch it and see what it would take.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Softmore
- Registered: Apr 05, 2004
- Last visit: Apr 10, 2010
- Posts: 132
HalbrookTech
Sites using CE should have shifted over to something better maintained along time ago
I've spent quite a bit of time looking at moving from PN762 to Zik - and whilst many of the little hurdles are addressable, there's always been one or two which haven't. From memory FormExpress has been the major stumbling block for me.
However, I've spent the last few months looking at (fx: stage whisper) an alternative CMS and CE just remains in use whilst that migration gets finished... Sorry!
edited by: AdrianChapman, datetimebrief
--
Adrian Chapman
Webmaster
Citroen Car Club
www.CitroenCarClub.org.uk
- Moderated by:
- Support
