• Resolved Fernando

    (@poumian)


    Hi,

    When this plugin is Activated, we’re not able to add new Images/gallery/media through the WordPress interface.

    We’ve tried disabling all the Plugins we have one by one, and this issue is only solved when “Scripts to Footer” is disabled.

    I read an earlier post in this forum which reported this very same problem, and you mentioned that in your next update you would disable this Plugin for the admin section.

    we’re using the latest version of both WordPress and your plugin, and the problem is still there. Is there anything else we have to do in order to disable it only in the Admin section?

    My team and I would really appreciate any help you can give us with this issue.

    https://www.ads-software.com/plugins/scripts-to-footerphp/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Thanks for bringing this to my attention. There is a safeguard against this plugin running in the admin (see line 105), so I’m surprised to see you’re having issues with it. I tested it prior to that update without issue.

    I’m swamped at the moment with work, but I’ll try to boot this up locally and see if I can replicate the issue. I’m not sure when I’ll have time, but hopefully in the next week or so.

    Can you turn on debug mode, activate the plugin, and then attempt? See if anything pops up in the debug mode and/or debug log.

    Also, it would be good to verify that your scripts (in the admin) are actually being sent to the footer – if they are where you’d expect them to be, then something else might be conflicting. Turn the plugin on, inspect the code and the head section specifically for scripts. Then deactivate it and see if there are any changes.

    Thanks,
    Joshua

    Hi Joshua:

    I’m having this same issue with the plugin. I turned on the Javascript Console when inserting a media object and it said “Uncaught RangeError: Maximum call stack size exceeded.”

    The line it referred to was the one that started with “window.send_to_editor = function (html)” in the cmb.js file.

    Hope that helps! Thanks for your work on this plugin.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Ah, are you both using a theme or plugin that loads CMB? There might be a conflict there. I’m not able to replicate the issue, the media upload in a post view works fine uploading and inserting an image.

    If it’s a CMB issue I can remove it from the plugin entirely and just add a good-old-fashioned metabox, that framework is a bit overkill.

    I don’t know…sorry. Here’s the plugins I currently have activated:

    amr shortcode any widget
    Attachment Pages Redirect
    Contact Form 7
    Contact Form DB
    Disable Comments
    Display Widgets
    Quick Page/Post Redirect Plugin
    Remove WP version and shortlink
    SSH SFTP Updater Support
    WordPress SEO
    ZigWidgetClass

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    I’m not able to replicate this issue. Be sure you’re using the most current version of WordPress and Scripts-to-Footer.

    @sweettea2 Please try deactivating all your plugins and reverting to a built-in theme like TwentyTwelve, then reactivate scripts-to-footer and see if you have the issue. If you don’t, then there is a conflict with another plugin or your theme. You’ll need to reactivate/deactivate each until you find the one causing the problem. Please let me know!

    @poumian – Do you have debug mode on? If not, please do. Let me know if you are seeing any errors in the log. You should also confirm that this isn’t an issue with your theme. It could be that there is a conflict with Scripts-to-Footer and another plugin/theme.

    Got it working! I’m using Interface (free WP theme) and it was a conflict with the add-image-script-widget.js and add-image-script.js files in the theme. I just did a search in the theme for “send_to_editor” and both those files came up. Removed those files and all references to them and it’s working! Thanks for the help.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Sweettea2, glad to hear you figured it out! Thanks for the follow up.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    I’m going to mark this as resolved, but let me know if you have any further issues or need more help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unable to Add Media to Posts/Pages’ is closed to new replies.