Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
ContentExpress renders blank pages after upgrade/move
  • Posted: 15.01.2007, 18:23
     
    learnincurve
    rank:
    Registered User Registered User
    registered:
     January 2007
    Status:
    offline
    last visit:
    15.01.07
    Posts:
    1
    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
  • Posted: 20.07.2007, 01:43
     
    bignab
    rank:
    Registered User Registered User
    registered:
     January 2003
    Status:
    offline
    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

  • Posted: 28.03.2008, 11:24
     
    sakshale
    rank:
    Helper Helper
    registered:
     August 2002
    Status:
    offline
    last visit:
    04.07.08
    Posts:
    147
    Thank you for posting this solution. I was bitten by the exact same bug after a site move.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula