New answers tagged

0

I would recommend, first open developer tools and clean cache, try with a different browser and see the outcome. 1- Turn on debug from wp-config.php file on the root directory. 2- Check the error.log file that might have details of the issue that causes the server take too long. It could be a php function not correctly formed is causing this. 3- It could be ...


0

If you do have access to them check your error logs, as the deprecation error should not prevent you from accessing your website something else is probably casing a Fatal error stopping the code from running any further. This issue is likely caused by changing php to a newer version. You can also try changing the directory names of all your plugins via FTP ...


0

This error will also happen when you call for a function that does not exist. to solve it you need to define the 'regis_options' function try something like function regis_options(){ echo 'test'; }


0

The error is related with the Hosting Server PHP Version. So if you are on PHP 7.3.XX try downgrading to 7.2.xx or 7.1.xx and see if that helps! P.S. I was facing the same issue and had to downgrade to PHP 7.1 to fix it!


0

You can find out which command is the reason. Add the following code before the line "if ( is_object( $function[0] ) ) {" if(!isset($function[0])){ var_dump($tag); var_dump($function); var_dump($priority); die(); }


1

Post meta values are stored as strings in the database, so you get only strings back. If you want to use these value in mathematical operations, you have to cast the value to a numeric type, meaning you write the desired type in parentheses in front of the variable or the function call. Generic example: $number = (int) get_post_meta($post_id, "...


0

I actually managed to chage it with this: function replace_registration_site_name_error( $translated_text, $text, $domain ) { $default = 'Site names can only contain lowercase letters (a-z) and numbers.'; if ( $translated_text == $default ) { $translated_text = __( 'Test', 'my_text_domain' ); } return $translated_text; } This works great. However I am ...


1

In my case, there were two .htaccess files running simultaneously (one from the "public_html" and one above the root directory), and it was causing the conflict. I removed the file, and it worked. I was able to get this fixed with my Wordpress version upgrade issue. Here's the original post of this solution: https://iiiji.com/fix-php-upgrade-error-...


0

Wrap it in a hook called wp_enqueue_scripts. Example: add_action( 'wp_enqueue_scripts', function() { wp_enqueue_style('style', get_stylesheet_uri(), false, false, 'all'); wp_enqueue_script( 'custom-script', get_stylesheet_directory_uri() . '/script.js', true ); });


Top 50 recent answers are included