Errors upon activation

Home Forums Installation and Configuration Errors upon activation

This topic contains 9 replies, has 3 voices, and was last updated by  Steve 1 year, 7 months ago.


Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8742

    Norton
    Participant

    Hi,

    I just tried installing Wordbooker and am getting the following errors when I try to activate:

    Notice: Use of undefined constant WORDBOOKER_SETTINGS – assumed ‘WORDBOOKER_SETTINGS’ in /home/…/wp-content/plugins/wordbooker/wordbooker.php on line 168

    Notice: Undefined index: action in /home//wp-content/plugins/wordbooker/wordbooker.php on line 902

     Notice: Trying to get property of non-object in /home//wp-content/plugins/wordbooker/wordbooker.php on line 2743

    Notice: Trying to get property of non-object in /home//wp-content/plugins/wordbooker/wordbooker.php on line 2746

    Notice: Trying to get property of non-object in /home//wp-content/plugins/wordbooker/wordbooker.php on line 2743

    Notice: Trying to get property of non-object in /home//wp-content/plugins/wordbooker/wordbooker.php on line 2746

    Please advise.

    Thank you for your time.

    #8767

    Steve
    Keymaster

    They’re not errors – they are warnings and notices. Which version of Wordbooker are you using?

    Notice: Use of undefined constant WORDBOOKER_SETTINGS – assumed ‘WORDBOOKER_SETTINGS’ in /home/…/wp-content/plugins/wordbooker/wordbooker.php on line 168

    The variable is defined – this seems to be a problem with constants in some versions of PHP – its a common error reported by a lot of people using PHP

    Notice: Undefined index: action in /home/…/wp-content/plugins/wordbooker/wordbooker.php on line 902

    This is a typo which is fixed in the next release – it doesn’t affect the plugin.

    The rest of the “errors” don’t line up to any obvious code lines which is why I’ve asked which version you’re using

    #8795

    Norton
    Participant

    It is version 2.1.14. Is there a different version you would recommend?

    #8796

    Steve
    Keymaster

    I’ll check 2.1.14 – but they are not errors, they are warnings and the plugin should function perfectly normally. PHP do not recommend you ever send warnings/errors or notices to the output on production boxes – either suppress them or configure php to send them to a file. Also make sure that WordPress is not running in debug mode.

    the notices from lines 2743 and 2746 are to do with these lines:
    $author_url = $comment->comment_author_url
    and
    $fb_id=get_comment_meta($comment->comment_ID,'fb_uid',true);
    now as $comment is a wordpress defined structure these two lines should not cause any problems. But I’ll see if there is some way of suppressing them,

    #8947

    Ernesto
    Participant

    I have received the same messages about 2.1.15. See below:

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 152

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/ocuban/public_html/wp-content/plugins/wordbooker/includes/wordbooker_facebook_curl.php on line 131

    I am tempted to simply move up to the 2.2 beta. GRIN. Any suggestions?

    #8955

    Steve
    Keymaster

    Those are very different messages – and its to do you with your version of curl

    Can you post your support information?

    Also it should work fine – just make sure php is not sending its notices to the screen.
    2.2 uses the same calls… looks like I’m going to have to put in another check to handle the fact that php isn’t consistent across platforms.

    #8956

    Steve
    Keymaster

    Alternatively – open the wordbooker_facebook_curl.php file and find all occurrences of :

    curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );

    and replace it with:

    @curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );

    #8963

    Steve
    Keymaster
    #9681

    Norton
    Participant

    Thank you for the new zip file. Sorry I wasn’t able to attempt to install it earlier.

    I tried this new zip and I got the same errors. I understand that these are just warnings. Unfortunately, the warnings show up on the regular pages on my site, not just the admin pages, so my readers see them as well.

    I’m pretty sure it is something with my installation. We’ve been getting weird error messages from other plugins as well and I can’t figure out where they are coming from. I may just need to find another alternative.

    Your plugin works great on my other blogs, so I appreciate all the time and effort you put into it. Keep up the great work and try not to get too discouraged with the frustrations that Facebook keeps throwing at you.

    Cheers,

    #9707

    Steve
    Keymaster

    You have a mis-configured php configuration because you are dumping warning/notice messages to your screen which you should not do in a live environment. For some reason a lot of hosting companies ignore this information.

    http://php.net/manual/en/errorfunc.configuration.php

    display_errors string

    This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.

    Value “stderr” sends the errors to stderr instead of stdout. The value is available as of PHP 5.2.4. In earlier versions, this directive was of type boolean.

    Note:

    This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet).


Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.