Jump to content

Archived

This topic is now archived and is closed to further replies.

rightclick27

[Solved] Fatal error: Cannot call overloaded function for non-object in

Recommended Posts

rightclick27

Hi - receiving this message on site after adding a simple blog post.

Fatal error: Cannot call overloaded function for non-object in /home/ol1v2a/public_html/wp-content/themes/whitehousepro6/dms/editor/editor.draft.php on line 19

Not sure what to do about this at all, cannot access Wordpress and DMS.  Any advice appreciated.

 

site: ashevillehappybody.com

 

 

Share this post


Link to post
Share on other sites
rightclick27

Update - site back online, all seems normal, but this is the second time I have seen the same error message.  Any advice on how to track down the issue?

 

Share this post


Link to post
Share on other sites
rightclick27

continuing to have this issue when editing new posts and pages.  

Is there a way to reset / kill / things when this is happening?

Share this post


Link to post
Share on other sites
rightclick27

continuing to receive this message when logging into pagelines editor

Fatal error: Cannot call overloaded function for non-object in /home/ol1v2a/public_html/wp-content/themes/whitehousepro6/dms/editor/editor.draft.php on line 19

Share this post


Link to post
Share on other sites
Simon

What is that line 19? Can you open the file and paste the 1st 30 lines or so

Share this post


Link to post
Share on other sites
rightclick27

<?php


class EditorDraft{

    var $slug = 'pl-draft';

    function __construct( ){

        //$this->mode = 'draft';

        $this->mode = $this->editor_mode();


    }

    function editor_mode(){
        global $is_chrome;
        $current_user = wp_get_current_user();              <------------------------------------------Line 19

        if(isset($_GET['edtr']) && $_GET['edtr'] != ''){

            $state = ($_GET['edtr'] == 'on') ? 'on' : 'off';

            update_user_meta($current_user->ID, 'pl_editor_state', $state);

        } else {

            $state = get_user_meta($current_user->ID, 'pl_editor_state', true);
        }

Share this post


Link to post
Share on other sites
Simon

Are you on godaddy by any chance?

Share this post


Link to post
Share on other sites
Simon

Yea after a quick google for 'Cannot call overloaded function get_current_user()' it seems to be a familiar issue with godaddy and wordpress with apache apc.so module

The 'fix' is to log into the cpanel area, select PHP 5.5 (or higher) and click save...

Screen_Shot_2015-10-21_at_20.20.20.thumb

Source: https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=Cannot+call+overloaded+function+get_current_user

 

Share this post


Link to post
Share on other sites
rightclick27

Thanks for sending that over, I certainly hope that is the fix.  As far as you know, there is no reason to fear the switch (any known issues with Pagelines)?

Share this post


Link to post
Share on other sites
Simon

Only known issue is it runs faster and uses a lot less memory ;)

Share this post


Link to post
Share on other sites
rightclick27

hmm... decisions, decisions

 

 

Share this post


Link to post
Share on other sites
Simon

Let us know if it works so we can close this topic :)

Share this post


Link to post
Share on other sites
rightclick27

All seems to be well after switching to PHP 5.5.  Thanks for your help!

Share this post


Link to post
Share on other sites
Simon

This topic has been marked as solved and therefore closed.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×