Imants
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] Bug Report -Causing Script Execution some of devicesHello @lida2926,
Thank you for reaching out. We have checked on our end, but unfortunately, we couldn’t reproduce the behavior you’ve reported. Could you please share the link to your site so we can take a closer look and investigate further?
Looking forward to your response!
Forum: Plugins
In reply to: [Code Snippets] Syntax errors not caught and Error 500 or 503 when savingHello @ddrapeau,
Thank you for reporting this issue. We will definitely investigate the problem with syntax error highlighting. Could you share what the error was that the latest version didn’t highlight properly? This will help us pinpoint and resolve the issue more effectively.
Thanks again for your feedback!
Forum: Plugins
In reply to: [Code Snippets] My snippet stopped working after 6 months for MeowAppsHello @patrickmarq,
Apologies for the late reply! I hope you’re doing well. I was able to locate the button from the snippet you shared, and it appears to be working fine on the site.
If you’re still experiencing issues, it could be related to other factors, such as recent changes or updates to the plugin using the
mwl_img_titlefilter.Forum: Plugins
In reply to: [Code Snippets] Update failed and the “q” errorHello @mask666,
Thank you for sharing the details.
If deactivating the Code Snippets plugin didn’t resolve the issue, it’s likely that the issue is being caused by another plugin or the theme. I recommend the following steps to troubleshoot:
- Switch the theme: Temporarily switch to a default WordPress theme (e.g., Twenty Twenty-One) to check if the issue persists. This will help rule out theme-related issues.
- Deactivate other plugins: Deactivate all other plugins except for Code Snippets, and then check if the problem still occurs. If the issue disappears, reactivate each plugin one by one to pinpoint which one is causing the issue.
Forum: Plugins
In reply to: [Code Snippets] Duplicate Snippets in CloudHi @mijstrebor,
We are still investigating this issue and working on a fix on the cloud side to prevent further duplications when syncing snippets. We understand that having a large number of duplicates can be frustrating, and we appreciate your patience as we address this.
In the meantime, if you need direct support related to Code Snippets Cloud, please reach out to us via Discord at snipco.de/discord. Our team will be happy to assist you there.
Thank you for bringing this to our attention!
- This reply was modified 1 year, 6 months ago by Imants.
Hi @vita1234 !!
Dear apologies for letting you wait on this explanation.The issue occurs because the Code Snippets plugin executes each snippet in isolation but still within the same PHP runtime environment. When SnippetB calls
snipA(), it requiressnipA()to be defined, which means SnippetA must have been executed beforehand.However, the problem arises when you later try to save SnippetA. Since SnippetB already executed
snipA()in the same environment, trying to save (and potentially re-run) SnippetA causes a function redeclaration error, which is a fatal error in PHP. This results in the 500 error when saving.Even though calling
snipA()from SnippetB works because the function is already defined, the issue surfaces when reloading or modifying the snippet that originally defined it.The solution is to use
if (!function_exists('snipA'))before defining the function in both snippets, preventing PHP from attempting to redeclare it. This ensures that no matter which snippet runs first, it won’t cause conflicts.Please note, that this is a side effect of how PHP handles function definitions across multiple executed snippets.
Forum: Plugins
In reply to: [Code Snippets] 3.6.7 broke shortcode evaluationThank you all for your patience and collaboration! We have identified the issue that broke the nested shortcodes evaluation and a new version will be released very soon.
Forum: Plugins
In reply to: [Code Snippets] _load_textdomain_just_in_time errorHi there @insecttrojan 👋
Thank you for reporting your issue, we are currently still investigating this and will do our best to address this in future releases.Forum: Plugins
In reply to: [Code Snippets] 3.6.7 broke shortcode evaluation@uk03 just for us to understand the situation better, are you using this PHP code in an HTML snippet?
Forum: Plugins
In reply to: [Code Snippets] Premium: Code vault connected, but suddenly emptyHi @nadworks and @robertstaddon,
Thank you for reporting the issues with the Code Vaults.
As the demand on the Cloud platform increases, we are currently upgrading our infrastructure to better handle this growth. These updates may have caused some unexpected behavior with our Cloud API.
At this moment, we are in the process of scaling and performing maintenance on the Cloud platform, which has led to slower response times and occasional issues. While these problems should be largely mitigated now, the upscaling will continue throughout next week, and there is a slight chance you may still experience some unexpected behavior.
Please rest assured that all user changes are being saved, and we are actively working to prevent any data loss.
We greatly appreciate your understanding and encourage you to reach out with any further issues.
For Code Snippets Cloud related support, please join our Discord server at https://snipco.de/discord.Thank you again!