I need your help, on the website, I get the error message:
Warning: Invalid argument supplied to foreach() in /home/bullet/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php (103): code eval()’d at line 36
How can I solve it so that it stops appearing?
Please bring back this plugin. It removes the need for a child theme only for php functions.
Any alternative plugins if this one becomes incompatible in the future.
Rather than edit the functions.php direct, I put this code into “My Custom Functions” but it did not work. Any suggestions
/**ADDED 31/08 changes Choose an Option to “Select Qty”
add_filter( ‘woocommerce_dropdown_variation_attribute_options_args’, ‘cinchws_filter_dropdown_args’, 10 );
function cinchws_filter_dropdown_args( $args ) {
$args[‘show_option_none’] = ‘Choose qty here’;
return $args; }
/*
]]>
@arthur-gareginyan any news about the pending review closure?
“This plugin has been closed as of November 10, 2022 and is not available for download. This closure is temporary, pending a full review.”
]]>Hi there,
Wondering if an update will come out soon for the compatibility of the plugin up to WordPress Version 6
With Thanks
Today I added a code that was suggested from another plugin developer.
The code I add to functions.php using your plugin was:
add_shortcode( 'note', 'sc_note' );
function sc_note( $atts, $content = null ) {
if ( current_user_can( 'publish_posts' ) )
return '<div class="note">'.$content.'</div>';
return '';
}
this was already added and working by me but if to this I add
add_filter("wpdiscuz_after_label", function ($afterLabelHtml, $comment) {
global $post;
if ($comment->user_id == $post->post_author) {
$afterLabelHtml = "<span class='wpd-comment-label'> Admin </span>";
}
return $afterLabelHtml;
}, 110, 2);
that was suggested to me here my website get broken.
I’m using Hestia theme.
So what I do?
I disabled your plugin and I create a Child theme with Child Theme Configurator, edited functions.php with the full code and all works.
The crash behavior is just created with your plugin that now has been disabled by me and maybe will be erased, deleted.
]]>Hi there, I am using your plugin to add Google Tag manager which requires adding code to the <head> as well as the <body> tags.
Is this possible with your plugin? What is the proper syntax to specify this?
Thank you!
]]>Does this plugin work for all sites in Multisite if its network activated? Or if its activated per site?
]]>My service provider is upgrading to PHP 8.0 and this plugin is incompatible. I have disabled it for now but are you dealing with this?
]]>Hi Everyone,
I can use some help diagnosing and fixing this error found on: https://kingsgroundwater.info/.
Fatal error: Uncaught Error: Call to undefined function tribe_is_month() in /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()'d code:11 Stack trace: #0 /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-includes/class-wp-hook.php(303): tribe_remove_wpseo_title_rewrite(Object(WP_Query)) #1 /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #2 /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-includes/plugin.php(518): WP_Hook->do_action(Array) #3 /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-includes/class-wp-query.php(1784): do_action_ref_array('pre_get_posts', Array) #4 /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-includes/class-wp-query.php(3465): WP_Query->get_posts() #5 /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-includes/post.php(2228): WP_Query->query(Array) #6 /h in /home/customer/www/kingsgroundwater.info/public_html/webpages/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()'d code on line 11
From what I can tell it’s PHP related. I cannot login to the WordPress Admin panel to troubleshoot plugins and run scans – so I’m stuck with trying to fix PHP and/or work with the hosted files.
I have tried changing a PHP file name from START to STOP (didn’t work).
Thanks for any suggestions or help in fixing this issue, or getting back to a working website.
The page I need help with: https://kingsgroundwater.info/
]]>So I added some PHP to my site using this plugin – but I must have messed it up as the site broke. Managed to get it working again thanks to my host but this plugin is deactivated. I know if I activate it, the site will break again, but I need to activate it in order to remove the broken code, and keep the existing code that I need.
Is there any way you can help? I’m a bit lost haha.
]]>the place of my code in the plugin files i need to find it to remove a line from it and work correctly.
]]>Hi! Can u help me how can i find wroten php code. I wrote my custom php function and add to plugin text area after saving function I broke my website ?? there is error in white scree. can’t do anything I need restart plugin. I reinstall plugin. Deleted from cpanel and download again but it was useful.
There is error:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected ‘;’ in /home/instvrl/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()’d code on line 19
Please help me. With respect Kashiin.
]]>Hi,
Thank you for the plugin, I now longer use it. After deactivating it I attempted to delete it (via WP backend), and received this message:
Deletion failed: There has been a critical error on this website.Learn more about troubleshooting WordPress.
The plugin still sits there as an inactive plugin on my WP backend. So I went to file manager, found the folder “My Custom Functions” and deleted the entire folder. And yet, the plugin still sits there…
Can you please assist?
]]>I upgraded one of my sites that uses “MY CUSTOM FUNCTIONS” plugin to PHP 8 and I got a fatal error.
I disabled all plugins and one by one turned them on until it crashed.
Is PHP 8 compatible?
]]>Hello,
This is my current code I need help with:
add_filter( 'woocommerce_get_price_html', 'custom_price_suffix', 100, 2 );
function custom_price_suffix( $price, $product ) {
if(is_singular('product')) {
$price = $price . __(' <span class="make-me-small"> inkl. MwSt. und <a href="https://www.website.com/versand"> zzgl. Versandkosten</a></span>', 'my-text-domain');
}
return apply_filters( 'woocommerce_get_price', $price );
}
This is if German is selected.
I want to change this:
$price = $price . __(' <span class="make-me-small"> inkl. MwSt. und <a href="https://www.website.com/versand"> zzgl. Versandkosten</a></span>', 'my-text-domain');
to this:
$price = $price . __(' <span class="make-me-small"> VAT incl. + <a href="https://www.website.com/shipping</a></span>', 'my-text-domain');
if English is selected as language.
How can I do that?
]]>Hi,
I had inserted code and was working properly. I had to do a restore of my site due to an issue with a custom code. I had to restore from backup. But now none of the custom code works. There are no errors shown in the plugin admin page.
Please help
Thank you
Hi,
just a question. Works your plugin with Genesis themes from Studiopress?
Thx for help
]]>I’m having a problem on the backend that is causing timeout.
I get this error:
[03-May-2021 17:58:16 UTC] PHP Fatal error: Uncaught Error: Call to undefined function xoo_wl_frontend() in /var/web/site/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()’d code:50
Any suggestions?
]]>I’m having problem with inserted code, that wasn’t causing an error before
This is the code:
// Edit WooCommerce dropdown menu item of shop page//
// Options: menu_order, popularity, rating, date, price, price-desc
function my_woocommerce_catalog_orderby( $orderby ) {
unset($orderby["price"]);
unset($orderby["price-desc"]);
return $orderby;
}
add_filter( "woocommerce_catalog_orderby", "my_woocommerce_catalog_orderby", 20 );
It should remove sort by price from Woocommerce listing options.
When I hover over the dropdown menu, at the top right on my site, it glitches.
See it here: https://pixxsa.com/
]]>Hi,
It’s possible to use ur plugin to load a php file?
thanks
]]>I ran across a problem migrating a site from one host to another. I developed a script that would detect the current user and role and then redirect based on the current page and user. It invoked the wp_get_current_user() function. On the first host it worked flawlessly, but when I moved to the second host, it would fail when trying to save the script. When I hit the Save Changes button the page would either return a 403 Forbidden error or it would load the main page of the front end and return a page not found error. After doing some research, I found a related issue and reached out to my host to see if it applied to my situation and sure enough that was the issue. The issue ended up being a mod_sec setting on the second host. When I explained the problem, my host tweaked the mod_sec rules for my account and the plugin is working as expected once again. I am sharing this because I looked for almost a week trying to resolve the problem and could not find a direct solution anywhere. If you are seeing strange behavior with this plugin (or similar plugins that inject code) reach out to your hosting provider and see if they can adjust their mod_sec rules on Apache servers.
]]>Per this attached video, we used the Toolset Types plugin to create a page with UI that allows visitors to find/access PDFs via (date attribute) dropdown selection. We are in the process of redesigning the client’s site and considering other alternatives to help us achieve this goal faster.
Can the “My Custom Functions” plugin (or any other plugin/steps) conveniently enable the implementation of this objective?
I am not a developer, so I am looking for a simple approach that:
#1 – Allows administrators to upload & list PDFs on the backend
#2 – Allows simple/dropdown organization of PDSs on the frontend
#3 – Allows the dropdown(s) to be posted on the existing pages (so that I don’t have to worry about creating a brand new page(s) with apps like Toolset Types.
Plugin could not be activated because it triggered a fatal error.
Fatal error: Uncaught Error: Call to a member function get_section() on null in public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()’d code:2 Stack trace: #0 public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103): eval() #1 public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(114): spacexchimp_p001_exec() #2 public_html/wp-content/plugins/my-custom-functions/my-custom-functions.php(102): require_once(‘/home/…’) #3 public_html/wp-admin/includes/plugin.php(2299): include(‘/home/u41301261…’) #4 public_html/wp-admin/plugins.php(191): plugin_sandbox_scrape(Array) #5 {main} thrown in public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()’d code on line 2
]]>Happy New Year and many thanks for your awesome plugin.
All works fine.
But I’m hoping for help as searched online and still cannot figure out how to add a function for a shortcode to insert the post_ID.
So for example, to make a custom link to edit a current post I’m looking at from the front end [while logged in] in Elementor from the admin bar, I need to pull in the current page/post ID.
Not a coder so just desperate to figure it out somehow…
Thank you.
]]>Does this plugin impact the performance of WP and pages in any percentage?
]]>Hello,
I run into an error (syntax) and before reading your guide (stop/start) I have deleted the plugin via FTP.
I was into delete the matching database table but couldn’t find it.
Is there a database table that I should delete before reinstalling?
Thank you!
The site: PNGCraft.com
]]>Hi,
I have just literately installed and activated your ‘My Custom Functions’ plugin and activated it. Straight away without entering any code I get the following error, which completely locks me out of my website! The only way to get back in was to rename the plugin through my ftp program!
Parse error: syntax error, unexpected ‘”) { ‘ (T_CONSTANT_ENCAPSED_STRING), expecting ‘,’ or ‘;’ in /home/zf2gx5tv/public_html/build2/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()’d code on line 33
Please can you shed some light on this error as I would very much like to use the plugin rather than adding functions to a child theme.
If you would like further information, please let me know.
]]>Hello,
I added a function to the tool that broke my site i had to disable the plugin.
Is there a way to get the old or the current functons set from the plugin. or can i change them without activating the plugin. SO i can remove the functions that broke the site.
Thank you for your help
]]>Hi,
I’m using this plugin on only one from 40 sites, and two test.txt files with numbers started appearing on that website in the main WordPress folder and the admin folder.
Every time I delete them, they come back a second after. Any idea what’s happening here?
]]>