ContentExpress renders blank pages after upgrade/move  Bottom

  • 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
  • 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

  • Thank you for posting this solution. I was bitten by the exact same bug after a site move.
  • 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
  • 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
  • Quote

    since the module is no longer functional

    actually I am still using CE with Zikula 1.2.2 on one site :D
  • 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
  • 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)
  • 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
  • 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

This list is based on users active over the last 60 minutes.