How do I do that? I don’t really want to change hosting services.
]]>Keeps throwing this multiple times a day, how to fix?
]]>PHP 8.0 DEBUG LOG:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “add_text” not found or invalid function name in /includes/class-wp-hook.php:324 Stack trace: #0 /includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #1 /includes/[/plugin.php(517): WP_Hook->do_action(Array) #2 /wp-content/plugins/woocommerce/templates/content-single-product.php(72): do_action(‘woocommerce_aft…’) #3 /wp-includes/template.php(792): require(‘/home/georgegl/…’) #4 /wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home/[account name]/…’, false) #5 /wp-content/plugins/woocommerce/templates/single-product.php(37): wc_get_template_part(‘content’, ‘single-product’) #6 /wp-includes/template-loader.php(106): include(‘/home/[account name]/…’) #7 /wp-blog-header.php(19): require_once(‘/home/georgegl/…’) #8 /index.php(17): require(‘/home/[account name]/…’) #9 {main} thrown in /wp-includes/class-wp-hook.php on line 324
PHP 7.4 DEBUG LOG:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_text’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 324
HERE IS THE CLASS-WP-HOOK.PHP CODE. I’VE BOLDED LINES 324 AND 328:
EXCERPT OF LINES 289-354 OF CLASS-WP-HOOK.PHP, WITH LINES 324 AND 348 IN RED
/**
* Calls the callback functions that have been added to a filter hook.
*
* @since 4.7.0
*
* @param mixed $value The value to filter.
* @param array $args Additional parameters to pass to the callback functions.
* This array is expected to include $value at index 0.
* @return mixed The filtered value after all hooked functions are applied to it.
*/
public function apply_filters( $value, $args ) {
if ( ! $this->callbacks ) {
return $value;
}
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
we need to update the wordpress version of one of our client’s sites: https://www.laducatessa.it/ to WordPress version 6.5.2 therefore we wanted to know if we also need to change the php version which is currently php: 7.4.33!
We also have the Elementor plugin on the site and wanted to know if it can cause problems with updating the WordPress version or not!
We are waiting for your kind urgent response,
thank you
Ilaria
]]>I searched their KB and the only mention of PHP version is here: https://support.realtyna.com/index.php?/Knowledgebase/Article/View/529/28/system-requirements-for-using-wpl stating “PHP?7.4.x or higher”
Did their actual System Requirements get updated before they updated their System Requirements doc?
]]>Usually, this happens when there is a plugin incompatibility.
What you can do is:
Any help will be highly appreeciated
I am trying to update php version from 7.3 to 7.4 since WordPress is announcing that the next WordPress update in October will need php 7.4 to work.
When I update php version to 7.4 from cpanel the site crushes. The first time I received an email with a link to recovery page that didn’t work at all. In that message it turned out that a plugin called “Duplicator pro” is the problem.
WordPressin version 6.3.1
Current theme: Storefront Child Theme (versio 1.0.0)
Plugin: Duplicator Pro (versio 4.5.12.1)
PHP version 7.4.33 (The site is running now on php 7.3)
Now with the plugin disabled (also tried to disable all the plugins) I updated php to 7.4 and I still can’t login to my site. There is apparently a connection problem with the database. My hosting provider checked that my user name is still in the database so I am lost. The login “worked” with my email but I cannot access to the dashboard. It only shows the frontpage when I login using the email so at the end of the day I am still not able to login to my page.
Thanks in advance!
Laura
]]>
My hosting with ionos.co.uk is forcing me to move from PHP 7.4 to 8.0 or 8.2 ideally.
As I am on 7.4 I am being charged to stay at this version.
On Changing to PHP 8.0 I am encountering the following message:
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
What have I tried, without any solution:
1. Using default WordPress Theme
2. Deactivation Woocommerce Plugin
3. Updating Theme plugin to latest version
Please see if anyone here can help me.
Kind Regards,
SD 187