• Resolved safieddine

    (@safieddine)


    HELLO, i I really like your work,
    I just had this php error notice I do not know why, however I did not change anything in the source code

    Notice: Undefined offset: 1 in /home2/ntechtn/DID.ntech.tn/wp-content/plugins/so-widgets-bundle/so-widgets-bundle.php on line 792
    this is what i found in this line
    $widget_instance = $opt_wid[ $num_match[1] ];

    thank you in advance! <3

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Hi, thanks for reaching out and for your support, it’s most appreciated.

    Thanks for reporting the notice, we’ll investigate it tomorrow.

    If possible, please, consider setting WP_DEBUG to false in your WordPress wp-config.php file. Your wp-config.php file is located in your WordPress root directory. You can download the file using an FTP program or your Hosting File Manager. For a production/live website, false is best if you aren’t actively debugging an issue.

    More on editing the wp-config.php file here. Please, let us know how it goes.

    Thread Starter safieddine

    (@safieddine)

    HELLO, thank you for your response,

    I already replace (‘wp_debug’, true); with this :

    ini_set(‘log_errors’,’On’);
    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);
    and clear cache
    the message is still displayed

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks for the update.

    I’m not sure why a notice would continue to print given the options listed in your message above. It shouldn’t. Kindly, reach out to your hosts and ask them if they can please, take a look at the PHP level error reporting options for your server/package, and set them to false.

    Plugin Support Andrew Misplon

    (@misplon)

    If you’d like to lend a hand with the troubleshooting of this notice, the following would be helpful:

    * Does the notice persist if you temporarily switch to a default theme like Twenty Nineteen and temporarily deactivate all plugins not authored by SiteOrigin?
    * If so, what PHP version are you using?

    Thanks

    Plugin Support Andrew Misplon

    (@misplon)

    We’ve taken a look at the notice. Please, could you try running a plugin conflict test, to begin with? Temporarily deactivate all non-SiteOrigin plugins in one go, does the issue resolve? This will hopefully, help us find the issue and get it fixed. Thanks ??

    Thread Starter safieddine

    (@safieddine)

    hello, thanks again for your reactivity.

    -I disabled all plugins except theme and plugins dependencies (SiteOrigin plugins)
    -I have the latest PHP version in my server 7.4
    -I set error_reporting to ~E_ALL : Disable all

    but the error’s display still persists

    PS: the display of the error appeared without any particular manipulation with the same environment that I already have

    I will wait for your response if there is something else to do

    Thanks again ??

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks for the feedback and tests run.

    It looks like your theme might be adding a widget via the SiteOrigin Widgets Bundle framework. Please, try to complete the conflict test as follows:

    1. If any caching plugins are being used, clear them.
    2. Temporarily deactivate all plugins except for the Widgets Bundle and Page Builder by SiteOrigin.
    3. Temporarily switch to a default theme like Twenty Nineteen.

    In this state, hopefully, the notice will have been removed. If so, does the notice reappear when reactivating your theme?

    Thread Starter safieddine

    (@safieddine)

    it is ultimately this plugin that causes me the error message.

    Recycle Theme Plugin

    Provides features used in Recycle Theme
    and i have
    Version 1.7

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks for the update, it’s good to hear you’re making progress.

    A few options moving forward perhaps are:

    * Reach out to the plugin developers, ask that they take a look at the issue.

    * Reactivate the plugin and go to Plugins > SiteOrigin Widgets, try and diagnose which widget from this plugin is causing the issue, deactivate it and replace it with another widget if possible.

    * If you haven’t already asked your hosts, you could request they assist with disabling PHP error reporting. Notices and warnings shouldn’t be displayed on production sites.

    So, a few ideas. Ideally, the plugin developers would take a look and resolve the issue.

    Thread Starter safieddine

    (@safieddine)

    Solved I finally add this code to my config.php

    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);

    And it’s okay

    you can consider that topic is solved thank you for your support.

    Plugin Support Andrew Misplon

    (@misplon)

    Super, glad to hear you’ve made progress. All the best with your website.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Undefined offset: 1’ is closed to new replies.