ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Fatal error: Call to a member function update_weblog_stats()

July 12, 2012 12:00pm

Subscribe [1]
  • #1 / Jul 12, 2012 12:00pm

    Nick Tatt

    20 posts

    Hi all,

    We seem to be experiencing a problem on EE 1.7.0 (upgrade not an option) whereas any entry being edited or created, any areas using SAEF etc. on submit are leaving users with a blank white screen?

    If we go to index.php and turn on error reporting (ini_set(“display_errors”,1)) we get the following error showing…

    Fatal error: Call to a member function update_weblog_stats() on a non-object in /var/www/vhosts/HIDDENADDRESS.com/httpdocs/mmtcp/cp/cp.publish.php on line 4683

    Could anyone shed any light on this as we have over 400 thousand members using the SAEF forms regularly and we look quite unprofessional at present.

    Many thanks in advance

    Andrew

  • #2 / Jul 16, 2012 12:28pm

    Dan Decker

    7338 posts

    Hi Andrew,

    I’m sorry these errors have suddenly cropped up for you!

    Do you recall any recent changes you might have made to ExpressionEngine?

    When errors like this crop up with no changes on your part, then it usually lies with the host. Did your host provider recently upgrade PHP by chance?

    Cheers,

  • #3 / Jul 17, 2012 11:35am

    Nick Tatt

    20 posts

    Hi Dan,

    We have not been made aware of any changes to the hosts PHP versions.

    When doing a phpinfo I see the version is 5.1.6.

    Would this version be causing the issue?

    Thanks

    Andrew

  • #4 / Jul 17, 2012 11:38am

    Nick Tatt

    20 posts

    N.B.

    We have commented out all of the code to do with the function update_weblog_stats() in the cp.publish.php file and all is back to normal now.

  • #5 / Jul 18, 2012 11:19am

    Kevin Smith

    4784 posts

    Hi Nick,

    Glad you’ve found a workaround. If you’re interested in getting to the root of the problem during some scheduled maintenance downtime on your site, let me recommend adding this to your cp.publish.php file. Just above this line (4683):

    $STAT->update_weblog_stats($weblog_id);

    Add this:

    var_dump($weblog_id);
    exit;

    Run an SAEF form again and copy the printout here. Then comment out the above code so it doesn’t show to visitors.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases