AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function IndexWpUsersForSpeed\update_action() in wp-content/plugins/index-wp-users-for-speed/includes/instacron.php:29\nStack trace:\n#0 wp-content/plugins/index-wp-users-for-speed/includes/instacron.php(35): IndexWpUsersForSpeed\need_cron()\n#1 wp-content/plugins/index-wp-users-for-speed/includes/plugin.php(74): require_once(‘/home/w…’)\n#2 wp-content/plugins/index-wp-users-for-speed/index-wp-users-for-speed.php(94): IndexWpUsersForSpeed\Index_Wp_Users_For_Speed->__construct()\n#3 wp-settings.php(467): include_once(‘/home/w…’)\n#4 wp-config.php(182): require_once(‘/home/w…’)\n#5 wp-load.php(50): require_once(‘/home/w…’)\n#6 wp-blog-header.php(13): require_once(‘/hom…’
]]>I tried to open the page “/wp-admin/options-permalink.php” on my site, but it wouldn’t load because of a critical error. It turns out the problem is as follows (from debug.log) :
PHP Fatal error: Uncaught Error: Call to undefined function flock() in /www/.../html/wp-admin/includes/misc.php:182
Stack trace:
#0 /www/.../html/wp-admin/includes/misc.php(285): insert_with_markers()
#1 /www/.../html/wp-includes/class-wp-rewrite.php(1899): save_mod_rewrite_rules()
#2 /www/.../html/wp-includes/rewrite.php(282): WP_Rewrite->flush_rules()
#3 /www/.../html/wp-admin/options-permalink.php(212): flush_rewrite_rules()
#4 {main}
thrown in /www/.../html/wp-admin/includes/misc.php on line 182
Once I comment out the two lines in misc.php that use the function flock(), the page (options-permalink.php) opens just fine. But I realize this might not be an optimal solution or might even raise other issues!
So my question is – how come a native PHP function flock() is undefined, and how can I fix this in a better way? On previous lines in misc.php other PHP functions are used, such as fopen(), and there’s no error. I have PHP 8.1 and the latest WP version (6.5.2).
I don’t know if this is related to updating to the new WP version or not, as I haven’t tried opening the page in question earlier. But today, while debugging, I disabled the Elementor plugin and tried to re-enable it – that wouldn’t happen because the plugin would cause an error, but once I commented out those lines in misc.php I could enable Elementor again. Such a problem hasn’t happened before with plugins, so I’m guessing this might have something to do with the update.
(Originally navigated to options-permalink.php to flush permalinks because the Site Health suggested that, saying “The authorization header is missing”, which I guess is a whole different issue I have no idea about The site was originally made by someone else and I have gradually learned WP stuff myself to do changes to it.)
]]>I tried to update my website last night and clearly did something wrong. I was initially getting messages that I needed to update my php. Now I’m getting this message when I go to my site:
Fatal error: Call to undefined function wp_theme_has_theme_json() in?/home/cs74zehep9hu/public_html/wp-includes/script-loader.php?on line?1634
And this message when I try to log in to wpadmin:
Fatal error: Call to undefined function wp_theme_has_theme_json() in?/home/cs74zehep9hu/public_html/wp-includes/block-template-utils.php?on line?373
I have scoured the web and have renamed my plugins file through cPanel to deactivate plugins. I have attempted to change my theme back to twentytwentythree through cPanel. Neither has helped, and now I’m stuck here.
Anyone know what I can do or who I can reach out to to fix this? Thanks!
]]>Fatal error: Uncaught Error: Call to undefined function PMPro_Pods\Pods\tribe() in /home/marglotr2427/public_html/wp-content/plugins/pmpro-pods/src/Pods/Permissions.php:168
Latest WP version, all plugins up to date, PHP 7.4.
The PODS admin screens look normal, I can view and edit fields and groups.
Thanks in advance.
]]>when I go in wp-admin into Pages and try to edit existing page (by click on page name or Edit) then I will get this error mentioned below. Do you know how to solve it, please?
Fatal error: Uncaught Error: Call to undefined function wp_theme_has_theme_json() in /home/users/galanterieroznov/masaze-roznov.jednoduse.cz/web/wp-admin/edit-form-blocks.php:206 Stack trace: #0 /home/users/galanterieroznov/masaze-roznov.jednoduse.cz/web/wp-admin/post.php(187): require() #1 {main} thrown in /home/users/galanterieroznov/masaze-roznov.jednoduse.cz/web/wp-admin/edit-form-blocks.php on line 206https://masaze-roznov.jednoduse.cz/
]]>[28-Dec-2022 15:10:54 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Automattic\WooCommerce\Blocks\BlockTypes\wp_is_block_theme() in /volume1/web_packages/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/ProductImage.php:168
Stack trace:
#0 /volume1/web_packages/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(100): Automattic\WooCommerce\Blocks\BlockTypes\ProductImage->enqueue_data()
#1 /volume1/web_packages/wordpress/wp-includes/class-wp-hook.php(303): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_editor_assets('')
#2 /volume1/web_packages/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#3 /volume1/web_packages/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /volume1/web_packages/wordpress/wp-includes/class-wp-customize-widgets.php(873): do_action('enqueue_block_e...')
#5 /volume1/web_packages/wordpress/wp-includes/class-wp-hook.php(303): WP_Customize_Widgets->enqueue_scripts in /volume1/web_packages/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/ProductImage.php on line 168
]]>This was the only error message we received after the failed update:
Call to undefined function wcdrfc_fs()
It would be nice if Woo could dump a log when errors are encountered during the update process that could be accessed outside of the admin pages. Have any advice on what the error means and how we can ensure that we’re not having to roll the site back or debug a giant list of plugins with the next WooCommerce update?
]]>Fatal error: Uncaught Error: Call to undefined function powerpress_get_settings() in /var/www/web26443472/html/erwartet2018/wp-content/plugins/powerpress/powerpress-player.php:164 Stack trace: #0 /var/www/web26443472/html/erwartet2018/wp-includes/shortcodes.php(356): powerpress_shortcode_handler(Array, '', 'powerpress') #1 [internal function]: do_shortcode_tag(Array) #2 /var/www/web26443472/html/erwartet2018/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(powerp...', 'do_shortcode_ta...', '<p>\xC2\xA0</p>\n<p st...') #3 /var/www/web26443472/html/erwartet2018/wp-content/plugins/themify-ptb/includes/class-ptb-cmb-base.php(524): do_shortcode('<p>\xC2\xA0</p>\n<p st...') #4 /var/www/web26443472/html/erwartet2018/wp-content/plugins/themify-ptb/templates/field--custom_text.php(20): PTB_CMB_Base::format_text('<p>\xC2\xA0</p>\n<p st...', true) #5 /var/www/web26443472/html/erwartet2018/wp-content/plugins/themify-ptb/includes/class-ptb-form-ptt-them.php(1002): include('/var/www/web264...') #6 /var/www/web26443472 in /var/www/web26443472/html/erwartet2018/wp-content/plugins/powerpress/powerpress-player.php on line 164
I’m not sure, what the problem is, because I didn’t see any updates the last days, that could have caused this error. Everything was fine until yesterday…
I hope you might have a solution.
Best regards,
Ilonka
Fatal error: Uncaught Error: Call to undefined function ctype_digit() in <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php:218 Stack trace: #0 <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(184): Jetpack_Signature->sign_request('tC9MFJj9FFud$gX...', 1661127076, 't66nXwXJKc', '', 'GET', 'https://dashboa...', NULL, false) #1 <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(37): Automattic\Jetpack\Connection\Client::build_signed_request(Array, NULL) #2 <root>/wp-content/plugins/jetpack/modules/stats.php(1310): Automattic\Jetpack\Connection\Client::remote_request(Array) #3 <root>/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php on line 218