I de activate the whole plugins and the theme and I get the
Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /home/customer/www/xxx.com/public_html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(60) : eval()’d code:257 Stack trace: #0 /home/customer/www/xxx.com/public_html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(60) : eval()’d code(257): join(Array, ‘,’) #1 /home/customer/www/xxx.com/public_html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(60): eval() #2 /home/customer/www/xxxx.com/public_html/wp-content/plugins/insert-php/libs/factory/shortcodes/shortcode.class.php(289): WINP_SnippetShortcodePhp->html(Array, ”, ‘wbcr_php_snippe…’) #3 /home/customer/www/xxx.com/public_html/wp-content/plugins/insert-php/libs/factory/shortcodes/shortcodes.php(98): Wbcr_FactoryShortcodes335_Shortcode->render(Array, ”, ‘wbcr_php_snippe…’) #4 /home/customer/www/xxx.com/public_html/wp-includes/shortcodes.php(434): Wbcr_FactoryShortcodes335_ShortcodeManager->__call(‘shortcode_WINP_…’, Array) #5 [internal function]: do_shortcode_tag(Array) #6 /home/customer/www/xxx.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[([file://[%3f)(wbcr_p][file://[%3f)(wbcr_p]\\[?)(wbcr_p…’, ‘do_shortcode_ta…’, ‘\n[wbcr_php_snip…’) #7 /home/customer/www/xxxx.com/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(‘\n[wbcr_php_snip…’) #8 /home/customer/www/xxx.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘\n[wbcr_php_snip…’, Array) #9 /home/customer/www/xxx.com/public_html/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:html –…’) #10 /home/customer/www/xxxx.com/public_html/wp-content/plugins/td-standard-pack/Newspaper/page.php(179): the_content() #11 /home/customer/www/xxx.com/public_html/wp-includes/template-loader.php(106): include(‘/home/customer/…’) #12 /home/customer/www/xxxx.com/public_html/wp-blog-header.php(19): require_once(‘/home/customer/…’) #13 /home/customer/www/xxx.com/public_html/index.php(17): require(‘/home/customer/…’) #14 {main} thrown in /home/customer/www/xxx.com/public_html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(60) : eval()’d code on line 257
There has been a critical error on this website.
]]>I haven’t seen responses from the plugin developer lately, and was just curious if this plugin is still supported/developed. Does anybody know?
]]>Hi, suddenly my site is down and it’s not possible to log to wordpress dashboard anymore. Alsto safe mode link doesn’t work
Un errore di E_ERROR è stato causato nella linea 48 del file /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/insert-php/admin/boot.php. Messaggio di errore: Uncaught Error: Failed opening required ‘/web/htdocs/www.pievedepitti.it/home/wp-content/plugins/insert-php/admin/metaboxes/info.php’ (include_path=’.:/php8.1/lib/php’) in /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/insert-php/admin/boot.php:48 Stack trace: #0 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(324): WINP_Plugin->{closure}() #1 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /web/htdocs/www.pievedepitti.it/home/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /web/htdocs/www.pievedepitti.it/home/wp-admin/admin-ajax.php(45): do_action() #4 {main} thrown
any suggestion how to turn all snippets off from FTP so to log in?Thanks
]]>Hello and thanks for this useful plugin
I add the shortcodes in Gutenberg with the shortcode block. Time to time they stop working. I open them and only saving them makes them to work again. No errors in the log.
Now I have changed the Linking type to Inline Code. Any advice, please?
Have a good day ??
]]>In wordpress admin, pop up a notice: If you see this message after saving the snippet to the Woody Code Snippets plugin, please enable safe mode in the Woody plugin… suddenly. Than all menus including “Woody snippets” are no content any more. Pls help!
]]>Hi, what do you mean with this update?
To insert php shortcodes is the most important feature for my websites. So this feature will be deactivated?
]]>As per Patchstack, the current version of Woody code snippets is vulnerable.
What is the schedule for a patched version?
Thanks!
]]>Hello
I’m looking for a way to add the defer attribute to a javascript file inserted by the plugin. ( Automatic insertion – location Footer – External file)
ie:
https://www.w3schools.com/tags/att_script_defer.asp
thanks
We have a website with a handful of JS snippets. They require jQuery and it worked great. We set them so load always, as an external file in the page footer. Since a few days (not sure the exact date) the order of the JavaScripts has changed so that our JS snippets are now enqueued BEFORE jQuery. This leads to a JavaScript error (jQuery is not defined).
What can we do to fix this?
]]>Almost every time I open a snippet to look at it and then close it, opening it again prompts me with the notification that there’s a recent autosave of that post. That autosave is empty, restoring from that autosave results in an empty snippet. This has been in the plugin for years now, someone fix it already, it’s annoying.
]]>I have a snippet that loads at table of amazon links based on a titleid. In a previous version, the following code worked well:
<a href="https://[wbcr_php_snippet id='17166' titleid='8081698']" target="_blank" rel="noopener">Paper:</a>
This applies to the old code at https://mountainsangha.org/products-on-sale. The links to the paper version on amazon are blank (“https://”). This code uses the following snippet, the one referred to above:
global $alinks;
echo $alinks[$titleid];
and used to work fine. Now I have to use a new snippet which goes against my sense of “good coding ethics”:
global $alinks, $alink; $titleid;
$alink = $alinks[$titleid];
echo "<a href='https://" . $alink . "' target='_blank'>";
Is there something I’m missing? Why doesn’t the first code work?
]]>Hi
My web host forced an upgrade to PHP 8.1.25.
Subsequently am getting deprecated warnings as per below ONLY if Woody is active. AND whilst debug is set to true it is also impossible to log into WP Admin whilst your plugin is active.
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 Warning: session_start(): Session cannot be started after headers have already been sent in .../wp-content/plugins/_lamna-gf-searchterms/lamna-gf-searchterms.php on line 47 Warning: Cannot modify header information - headers already sent by (output started at .../wp-includes/functions.php:7241) in .../wp-login.php on line 502 Warning: Cannot modify header information - headers already sent by (output started at .../wp-includes/functions.php:7241) in .../wp-login.php on line 518 Warning: Cannot modify header information - headers already sent by (output started at .../wp-includes/functions.php:7241) in .../wp-includes/functions.php on line 7049
]]>
Hi.
I use WP 6.3.2 and Woody Snippets 2.4.10
I have some snippets with PHP using forms to pass variable through snippets. Then I catch variables wit $_REQUEST function.
I have noticed that since October variables are not passed via <form>, but they are passed by URL like ‘snippet?id=3’
Why is this happening now, since my code worked fine until last month?
Thanks
]]>Hi recently experiences severe server errors on my website so I’m investigating which plug-in causes them.
Hi have several php deprecated calls from Woody code
Can you help me to solve them?
Deprecatedstrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
14Plugin: insert-php
strpos()
wp_is_stream()
wp_normalize_path()
plugins_url()
Wbcr_Factory466_Requirements->__construct()
Deprecatedstr_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
14Plugin: insert-php
str_replace()
wp_normalize_path()
plugins_url()
Wbcr_Factory466_Requirements->__construct()
Hey guys.
In auto insert mode, there is possibility to insert the snippet in more than 1 paragraph at the same time.Example, after paragraph 3 and 10?
If so, what would be the script for the plugin to understand?
]]>I am using AdRotate Banner Manager – AdSense Ads & more when I use the shortcode of the banner ad it doesnt appear , it shows only the shortcode as it is
I tried html, text, universal and PHP but it never work
is there a solution pls?
]]>Hi,
Seems that the snippet library is not connecting properly.
As you can see in the screenshot here the personal snippet library (cloud) we use very often, is now empty and not showing our already created and saved snippets.
Also saving new snippets as templates ain’t working.
Can you fix this please,
Thanks,
]]>Few days back I realized that HTML tags stopped working on Free version. <BR> tag written inside double quotes in echo syntax were converting into new line. I realized that the new free version corrupted my entire website as I was using woody code snippet in all my pages.
To recover this damage I purchased Woody code snippet “Basic” lifetime plan (Premium 2022) on 22nd May 2023. This is blunder than free version. Now when I make changes in PHP snippets, it is not saving. I can see the update button but not publish.
I raised this with my premium login but no answer after 3 working days. Wrote so many emails.
Kindly resolve my issue otherwise return my money
Amount Received:$79.00 USD
Payment ID:914828
Customer ID:7040342
Plugin:Woody ad snippets
Plugin ID:3465
Plan:Premium 2022
Plan ID:17580
]]>
Hello,
after switching from PHP 7.4.x to 8.2.x I found tons of the following messages in my “error_log” file:
PHP message: PHP Deprecated: Creation of dynamic property WINP_SnippetShortcodePhp::$plugin is deprecated in /var/www/vhosts/my.domain.com/httpdocs/portal/wp-content/plugins/insert-php/libs/factory/shortcodes/shortcode.class.php on line 95;
I know this is no critical bug. However, it would be great if you would fix this, because the “error_log” file grows unnecessarily to several megabytes every day.
Thanks in advance.
]]>Hi! I’ve created a PHP snippet that contains strings. I need to translate these strings with WMPL String Translator. How to proceed? Is this possible? If not, is the only solution to create two separate snippets for each language? Any help will be really appreciated.
]]>How can I find the Version 2.4.1?
]]>hi,
On php 8.1, your plugin gives several php errors. On some pages I get 40 php notices from the woody insert snippet plugin.
Can you please fix this ?str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
thank you !
Hello,
Is it possible to run a snippet only in frontend and not in admin?
For example, I have a snippet och all pages that checks for a password otherwise a redirect occur. When editing the page with Elementor I need to turn of the snippet everytime befor editing the page.
]]>Hi, I have more than 100 snippets in my website. now I’m getting error in some of them in error log but i can’t find which snippet is.
for example the error is:
PHP Warning: Undefined variable $n in /wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 46
how can i know which snippet is causing this error?
]]>What is Causing Error: Parse error: syntax error, unexpected ‘<‘, expecting end of file in /home
]]>Using Woody Code Snippets 2.4.7, my php / javascript script works great on WordPress 6.0.3, but when I ran the same scripts on WordPress 6.1, the snippet no longer works.
When do you plan to support WordPress 6.1?
]]>There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
If you see this message after saving the snippet to the Woody Code Snippets plugin, please enable safe mode in the Woody plugin. Safe mode will allow you to continue working in the admin panel of your site and change the snippet in which you made a php error.
—————————————————————————————
this meassage show on my website after click update post/page
Getting Error from Shield Security Plugin:
The plugin developer chose not to use SVN tags for this version, so actions such as file repair and file diff aren’t available.
Hello,
I have some HTML content in snippet.
Is it possible to translate it with WPML? How?
Snippet is placed in theme php file and I don’t want to make if’s and multiple code snippets.
]]>This is the message I am seeing:
Warning: Invalid argument supplied for foreach() in /home/customer/www/finlightened.com/public_html/wp-content/plugins/insert-php/includes/class.execute.snippet.php on line 679
How can this be fixed? Thank you for the help.
Line 679 is this in code below: foreach ( $filters[0] as $filter ) {
/**
* Check conditional execution logic for the snippet
*
* @param $snippet_id
*
* @return bool
*/
public function checkCondition( $snippet_id ) {
// Итоговый результат условий
$result = true;
// Получаем сохранённые параметры условий
$filters = get_post_meta( $snippet_id, WINP_Plugin::app()->getPrefix() . 'snippet_filters' );
// Если условия указаны
if ( ! ( empty( $filters ) || isset( $filters[0] ) && empty( $filters[0] ) ) ) {
foreach ( $filters[0] as $filter ) {
$conditions = $this->getPropertyValue( $filter, 'conditions' );
// Если условия пусты, то пропускаем цикл
if ( empty( $conditions ) ) {
continue;
}
// Промежуточный результат AND условий
$and_conditions = null;
// Проходим по AND условиям
foreach ( $conditions as $scope ) {
$scope_conditions = $this->getPropertyValue( $scope, 'conditions' );
// Если условия пусты, то пропускаем цикл
if ( empty( $scope_conditions ) ) {
continue;
}
// Промежуточный результат OR условий
$or_conditions = null;
// Проходим по OR условиям
foreach ( $scope_conditions as $condition ) {
$method_name = str_replace( '-', '_', $this->getPropertyValue( $condition, 'param' ) );
$operator = $this->getPropertyValue( $condition, 'operator' );
$value = $this->getPropertyValue( $condition, 'value' );
// Получаем результат OR условий
$or_conditions = is_null( $or_conditions ) ? $this->call_method( $method_name, $operator, $value ) : $or_conditions || $this->call_method( $method_name, $operator, $value );
}
// Получаем результат AND условий
$and_conditions = is_null( $and_conditions ) ? $or_conditions : $and_conditions && $or_conditions;
}
// Получаем результат блока условий
$result = $this->getPropertyValue( $filter, 'type' ) == 'showif' ? $and_conditions : ! $and_conditions;
}
}
return $result;
}
]]>