• Resolved bromatebro

    (@sophabed)


    Hello there!
    Thank you for this very useful plugin.
    I’m getting the following errors in my php error logs :

    [27-Mar-2015 10:10:22 UTC] PHP Notice: Undefined index: custom_image_url in /srv/data/web/vhosts/mywebsite.tld/htdocs/wp-content/plugins/posts-in-sidebar/inc/posts-in-sidebar-widget.php on line 116
    [27-Mar-2015 10:10:22 UTC] PHP Notice: Undefined index: custom_img_no_thumb in /srv/data/web/vhosts/mywebsite.tld/htdocs/wp-content/plugins/posts-in-sidebar/inc/posts-in-sidebar-widget.php on line 117
    [27-Mar-2015 10:10:22 UTC] PHP Notice: Undefined index: hide_widget in /srv/data/web/vhosts/mywebsite.tld/htdocs/wp-content/plugins/posts-in-sidebar/inc/posts-in-sidebar-widget.php on line 162

    They are logged each time a visitor query a page including the widget. Therefore, it throws thousands of error lines.

    Do you have any idea on how to fix this ?

    Bests

    https://ww.wp.xz.cn/plugins/posts-in-sidebar/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hi Sophabed,
    Those PHP notice are not a real issue, but only a “notice”. Anyway, they must be resolved. I’ll take a look and will fix them.

    Thanks for reporting. 🙂

    Plugin Author Aldo Latino

    (@aldolat)

    Hi Sophabed,
    all the PHP notices have been resolved.
    I’ll release the new 1.27 version in the next hours.

    Cheers 🙂

    Plugin Author Aldo Latino

    (@aldolat)

    Hi Sophabed,
    could you tell me if all the notices have been resolved? It should be so, but I’d like a feedback.

    Thanks in advance.

    Thread Starter bromatebro

    (@sophabed)

    Hi Aldolat,
    Sorry for the late response.
    Yes, you’re right, it’s only notices, not errors.
    After update I still get the same notices and even more, I have undefined index for :
    exclude_current_post
    post_not_in
    image_before_title
    custom_image_url
    custom_img_no_thumb
    utility_after_title
    hide_widget
    debug_query
    debug_params
    debug_query_number

    Just to let you know, after update, I had to manually save again all my sidebars that use Posts in sidebar (I’m using Avada theme which can add unlimited sidebar widgets). If not, the mention “No article yet” was displayed.
    Anyway, there is no big issues here as everything is working fine.

    Bests

    Plugin Author Aldo Latino

    (@aldolat)

    Hi @sophabed
    thanks for the feedback!

    1.27 version resolves all the notices and they are not present anymore in all my sites. These notices were present before the update and I’m very grateful for your report, but now I don’t see them.

    Plugin Author Aldo Latino

    (@aldolat)

    Sorry for the second reply, but I would ask a question.

    Could you let me see the full set of parameters of the widget?

    To do this, activate the option “Display the complete set of parameters of the widget”, save the widget, then go to the site, copy the text containing the output and email me this output. Do not forget to deactivate that option, because the output is publicly visible.
    My email is aldolat on Gmail.

    Let me know.

    Plugin Author Aldo Latino

    (@aldolat)

    Hi @sophabed
    I just looked at your email and all seems fine. All the checkboxes values[1] have 0 or 1 so you should not receive any other notice from PHP.

    At this point, I have not other elements to say why you continue to receive them.

    [1] For example:

    [ignore_sticky] => 0
    [exclude_current_post] => 0
    [display_title] => 0

    etc.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Undefined index in PHP error log’ is closed to new replies.