• Resolved bazengerekli

    (@bazengerekli)


    Hello,

    I am using ad inserter 2.7.31. I see error below;

    unserialize(): Error at offset 791 of 25160 bytes in public_html/wp-content/plugins/ad-inserter/ad-inserter.php on line 5360

    How can fix this ?

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

    (@spacetime)

    Hello,

    it seems your settings stored in the database are corrupt. Ad Inserter settings are stored in the ad_inserter option in the wp_options table in the database. To restore Ad Inserter settings you need to copy this option from some backup.

    Alternatively you can Reset All Settings.

    Thread Starter bazengerekli

    (@bazengerekli)

    I see the following error on my site.

    Warning: unserialize(): Error 253 of 11003 bytes in /home/xxxxx/public_html/wp-content/plugins/ad-inserter/ad-inserter.php on line 5360

    Afterwards, we do Reset All Settings from the settings section and the plugin error goes away. 1-2 weeks after placing the ads, it starts giving the same error again.

    Can you help with this issue?

    Plugin Author Spacetime

    (@spacetime)

    This indicates that the plugin settings are corrupted. Ad Inserter settings are stored in the ad_inserter option in the wp_options table in the database.

    Looks like you have an issue with the database. Something is corrupting the data. Check and repair the database if necessary. I would suggest contacting the hosting company to check your WP installation.

    Thread Starter bazengerekli

    (@bazengerekli)

    This error keeps repeating, do you have any comments?

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    In this case, WordPress caught an error with one of your plugins, Ad Inserter.
    First, visit your website (https://www.xxxx.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.xxxx.com/wp-admin/options-general.php?page=ad-inserter.php&ai-safe-mode) and check for any visible issues.
    Please contact your host for assistance with investigating this issue further.
    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
    https://www.xxxx.com/wp-login.php?action=enter_recovery_mode&rm_token=IMrg8rgYS3pm&rm_key=gkYylP0e6DLfxQRqeFIyMe
    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.4.2
    Active theme: Paperio (version 2.4)
    Current plugin: Ad Inserter (version 2.7.32)
    PHP version 8.1.26 Error Details

    An error of type E_ERROR was caused in line 13 of the file /home/xxxx/public_html/wp-content/plugins/ad-inserter/settings.php. Error message: Uncaught Error: Undefined constant “AI_CONNECTED_WEBSITE” in /home/xxxx/public_html/wp-content/plugins/ad-inserter/settings.php:13
    Stack trace: 0 /home/xxxx/public_html/wp-content/plugins/ad-inserter/ad-inserter.php(8112): generate_settings_form() 1 /home/xxxx/public_html/wp-includes/class-wp-hook.php(324): ai_settings() 2 /home/xxxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 3 /home/xxxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /home/xxxx/public_html/wp-admin/admin.php(259): do_action() 5 /home/xxxx/public_html/wp-admin/options-general.php(10): require_once(‘/home/xxxx/…’) 6 {main}

    thrown

    Plugin Author Spacetime

    (@spacetime)

    Please install the latest development version:
    https://downloads.wp.xz.cn/plugin/ad-inserter.zip

    Thread Starter bazengerekli

    (@bazengerekli)

    Hello again,

    Hello, While installing the plugin I saw the following warnings

    Deprecated: strip_tags(): Passing null to parameter #1 ($subject) of type array|string is decrecated in …wp-admin/admin-header.php on line 36

    Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is decrecated in …wp-admin/includes/plugin.php on line 2092

    Thread Starter bazengerekli

    (@bazengerekli)

    Hello, The error is recurring, can you help?

    Notice: unserialize(): Error at offset 253 of 11051 bytes in /home/xxxx/public_html/wp-content/plugins/ad-inserter/ad-inserter.php on line 5461

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

The topic ‘Unserialize Error’ is closed to new replies.