• So, I noticed that I can’t select the “Auto-Insert” option when I create custom code snippets.

    It only lets me pick the “Shortcode” option.

    Also wanted to add that I noticed that when I choose a built-in snippet, I can’t choose the “Shortcode” option.

    It only let’s me pick the “Auto-Insert” option.

    Any help with this issue will be appreciated.

    • This topic was modified 2 years, 4 months ago by VannDigital. Reason: Needed to add to complaint

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @vdn-staff thanks for reaching out.

    From what you’re describing it sounds like it you might be running into a JavaScript conflict throwing an error and preventing you from using that toggle.

    Can you please tell us if you are seeing any errors in the browser console? (right-click > Inspect > Console tab)

    If you’re not familiar with the browser console please check out this article for more details.

    Thanks,
    Mircea

    Thread Starter VannDigital

    (@vdn-staff)

    The most I could find was something about a deprecated feature being used.

    No JavaScript conflict…

    Plugin Author Mircea Sandu

    (@gripgrip)

    Thank you for the update. Without more context it’s very difficult to pinpoint what is happening so if you don’t mind giving us more details to try and provide a solution/fix:

    What browser are you using? Is this happening in another browser? (just to rule out something local)

    Do other features that use JS on the page work? (assigning a tag, switching the code type, copy shortcode button, adding conditional logic rules)

    If you have a staging site and can use that to try troubleshooting by disabling other plugins that could make it easy to find a potential conflict to account for.

    Thanks

    Thread Starter VannDigital

    (@vdn-staff)

    What browser are you using? Is this happening in another browser? (just to rule out something local)

    So, I’m using Google Chrome. I tried another browser and got the same result.

    Do other features that use JS on the page work? (assigning a tag, switching the code type, copy shortcode button, adding conditional logic rules)

    From what I seen, nothing outside the “Header & Footer” option works.

    If you have a staging site and can use that to try troubleshooting by disabling other plugins that could make it easy to find a potential conflict to account for.

    I can see what I can do…

    Thread Starter VannDigital

    (@vdn-staff)

    So, I tried troubleshooting. Same result ??

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hey @vdn-staff,

    Thank you for the update on this issue.

    When looking at the browser console did you also try clicking the auto-insert option first? It might be that an error is thrown only when you click it.

    It might also be that the scripts are not loaded properly on the page either because of a corrupted filed during the update or something throwing a PHP error preventing the full page from loading (as the scripts are loaded at the bottom of the page).

    Is it possible to check the PHP error logs to see if that could reveal anything?

    Thread Starter VannDigital

    (@vdn-staff)

    When looking at the browser console did you also try clicking the auto-insert option first? It might be that an error is thrown only when you click it.

    Tried clicking on “auto-insert” and got the same result. I did see errors but they had nothing to do with this plugin.

    It might also be that the scripts are not loaded properly on the page either because of a corrupted filed during the update or something throwing a PHP error preventing the full page from loading (as the scripts are loaded at the bottom of the page).

    I did see PHP errors. But again, they had nothing to do with this plugin.

    Is it possible to check the PHP error logs to see if that could reveal anything?

    Checked that. Ain’t seen no errors for this plugin.

    Plugin Author Mircea Sandu

    (@gripgrip)

    I see, the errors don’t have to be related to the plugin to interfere. If you run into a JS error that can prevent further JavaScript execution and that would explain why you can’t make changes.

    Same thing with the PHP errors – if an error is thrown from another plugin, for example, and that stops the page from loading before the WPCode script is loaded properly it could also explain the settings not working.

    Thread Starter VannDigital

    (@vdn-staff)

    It’s worth mentioning that the (JS & PHP) errors I did find were related to the admin bar and Jetpack…

    Plugin Author Mircea Sandu

    (@gripgrip)

    Can you please share the full name (or URL) of the plugin for admin bar you mentioned so we can test on our end to try and provide a solution?

    Thanks

    Thread Starter VannDigital

    (@vdn-staff)

    Plugin Author Mircea Sandu

    (@gripgrip)

    Thank you @vdn-staff, I can see that file is loaded by Jetpack but it doesn’t throw an error on my end, only a warning “Missing data from PHP (wpNotesArgs).” but that doesn’t interfere with the page.

    Would it be possible to share a screenshot of the JS errors you are seeing? Maybe that could provide more info.

    Thanks

    Thread Starter VannDigital

    (@vdn-staff)

    Here go the screencap…

    https://ibb.co/FHcb2q6

    • This reply was modified 2 years, 4 months ago by VannDigital. Reason: Link didn't show
    Plugin Author Mircea Sandu

    (@gripgrip)

    Thank you for the screenshot, from what I can see that error is usually related to a Chrome extension but you mentioned you run into the same issue in other browsers so it shouldn’t be the cause of the problem here.

    Regardless, I would also try opening an incognito window and checking if the plugin works OK there just to rule it out.

    Thread Starter VannDigital

    (@vdn-staff)

    Thank you for the screenshot, from what I can see that error is usually related to a Chrome extension but you mentioned you run into the same issue in other browsers so it shouldn’t be the cause of the problem here.

    Right

    Regardless, I would also try opening an incognito window and checking if the plugin works OK there just to rule it out.

    Just tried to work it in an incog window. Same result.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can’t Select Auto-Insert When Creating Custom Code Snippets’ is closed to new replies.