• Resolved mayur777

    (@mayur777)


    Hi,

    I am using ad inserter plugin from the long time & i am happy using it.
    But after updating the plugin to the latest which is 2.0.1. I am facing strange issue while saving the code.
    When i put the code & click on save all setting just confirmation appears on the screen saying that are you sure you want to do this & there is no button to press.
    I am not able to save the code.
    check the below screenshots.
    Ad inserter version & code

    ad inserter confirmation message

    I thankful if anyone can help me on this.

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

    (@spacetime)

    It seems something is blocking Ad Inserter settings page.
    Please check ad blockers and WordPress security plugins.

    Also make sure the settings page is not idle for long time as the security token may expire.

    Thread Starter mayur777

    (@mayur777)

    @igor it was working perfectly just before the update of the plugin.
    save settings never asked for confirmation like this.

    • This reply was modified 8 years, 2 months ago by mayur777.
    Plugin Author Spacetime

    (@spacetime)

    The new version added checks for blocked content.

    From the screenshot it seems everything is loaded normally.
    Maybe it’s false warning as some code must be run after the page is loaded to hide warnings.

    Does the warning appear immediately after loading the settings page or it is displayed with delay of few seconds?

    Thread Starter mayur777

    (@mayur777)

    @igor when i put the code & click on save all settings it just reloads the page to save the settings & this message appears on the screen where i can not do anything.
    When i try to check the code is not saved.

    Plugin Author Spacetime

    (@spacetime)

    Then please contact me.

    Plugin Author Spacetime

    (@spacetime)

    The problem was inappropriate caching.

    The problem is that when the plugin is updated it also provides new javascript and CSS files.

    In order to prevent browsers from loading old js/css files the plugin appends version info as query parameter to js and css files needed.

    For example, in the source code of the settings page it should be like this:

    <script type='text/javascript' src='https://example.com/wp-content/plugins/ad-inserter/js/ad-inserter.js?ver=2.0.1'></script>
    
    <link rel='stylesheet' id='ai-admin-css'  href='https://example.com/wp-content/plugins/ad-inserter/css/ad-inserter.css?ver=2.0.1' type='text/css' media='all' />

    However, on the website this version parameter was missing:
    <script type='text/javascript' src='https://example.com/wp-content/plugins/ad-inserter/js/ad-inserter.js'></script>

    Because of this the old cached files (css and js) were loaded which caused warnings.

    If you are using caching make sure the caching software DOES NOT REMOVE VERSION INFO parameter from the url. This is needed for browsers to reload the file when the plugin is updated.

    • This reply was modified 8 years, 2 months ago by Spacetime. Reason: typo
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to save the settings.’ is closed to new replies.