wordpress theme not activating - wordpress

whenever i activate any theme on my wordpress, i got this error. can anyone help me how to resolve this error?
checking the error.log file i got this error in that file.
unexpected '<' in /tmp/theme_temp_setupOG3lLA on line 2
can anyone tell me how to resolve it???

Related

my wordpress website is down, how to solve this error

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/py9de5hew9qy/public_html/wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/class-redux-core.php on line 460
There has been a critical error on this website. Please check your site admin email inbox for instructions.
how to solve this error
That's obviously caused by the "fuse-social-floating-sidebar" plugin
If you can access the backend, deactivate that plugin, if you can't, erase the folder of that plugin from the "plugins" folder inside "wp-content" and reinstall the plugin.

How can I solve this error "Fatal error: Cannot redeclare retrieve_password()"

I'm getting a error message when accessing 'wp-login.php' page and do not know how to fix it:
Fatal error: Cannot redeclare retrieve_password() (previously declared in E:\Inetpub\vhosts\winningbizzness.com\httpdocs\wp-login.php:311) in E:\Inetpub\vhosts\winningbizzness.com\httpdocs\wp-includes\user.php on line 2671
I had the same issue here and it was caused by a WordPress update failure where some files were missing or corrupted.
I quickly resolved just reinstalling WordPress. In my case I used FTP, as in this guide: https://kinsta.com/blog/reinstall-wordpress/
Hope it helps anyone reading this answer!

Getting a PHP E_ERROR message, how to fix it?

How can I fix this?
Error Details:
An error of type E_ERROR was caused in line 47 of the file /home/giraudodfw/www/wp-content/themes/Divi/includes/builder/core.php. Error message: Uncaught Error: Call to undefined function et_() in /home/giraudodfw/www/wp-content/themes/Divi/includes/builder/core.php:47
Line 47:
$post_id = (int) et_()->array_get( $_GET, 'post', 0 );`
logging via FTP, renamed divi folder (theme) to divi_old
Now go back to Wordpress themes deleted the Divi theme and uploaded it again, installed it, After going to the settings, permalinks saved twice.
I think it can work...

Fatal error: Cannot redeclare create_initial_rest_routes()

I am facing error with WordPress plugin
Fatal error: Cannot redeclare create_initial_rest_routes() (previously declared in /var/www/html/wp-includes/rest-api.php:183) in /var/www/html/wp-content/plugins/rest-api/plugin.php on line 216.
I have 2 plugin having this method 1 is default from WP and another is custom for my site.
Can you please help me about this, what process i am doing wrong here. As I am a JAVA developer and trying to understand the PHP plugin logic.
PHP version : 5.3.4
Apache: 2.2.17
MySql:5.1.53
Thanks in Advance.

Fatal error: Class 'WP_Scripts' not found in wp-includes\functions.wp-scripts.php

I have to developed the new wordpress site in my localhost xammp server.
the following fatal error is shown to me Fatal error: Class 'WP_Scripts' not found in wp-includes\functions.wp-scripts.php on line 23.
how to solve this issue, pls anyone help for me.
You have to re-install wordpress again, as somefiles are missing thats why it showing this error.
Do below steps:
Copy your downloaded wordpress repository and paste it again in xamp
server
setup wordpress again
conect with db by adding db configuration
then your issue get resolved
Put this file in wp-includes folder
class.wp-scripts.php
Note: you can find this file from any new wp-setup.

Resources