Hey All,
I'm a bit new to the WordPress game, and was trying to set up my server with WordPress. I was running through the installation, and just entered the host, db name, and pass, and hit go, when I see this:
Fatal error: Call to undefined function is_admin() in /var/www/WordPress/wp-admin/includes/comment.php on line 162
I've got no idea what this error means, though a google search turned up several websites with the same error; for example:
Site
All help appreciated!
Reupload fresh copies of all Wordpress files and folders, except for wp-config.php. Some of them didn't fully upload the first time.
Related
My website https://www.greengo.uk/ stopped working and I just can't figure out why. The error message is:
Fatal error: Cannot redeclare noindex() (previously declared in /var/sites/g/greengo.uk/public_html/wp-includes/general-template.php:3206) in /var/sites/g/greengo.uk/public_html/wp-includes/deprecated.php on line 4155
It looks like something happened after an update.
general-template.php:3206
deprecated.php on line 4155
I have deleted the .maintenance file but no luck. I have some important content on this website. Could you help me out how to make it work and recover it?
Thank you
I had the exactly same problem yesterday with one of the sites I've done for a client. I managed to restore the site by updating my local development version to Wordpress 5.7. and then manually replacing the general-template.php and deprecated.php on the server.
The site works now but unfortunately login screen still gives critical error.
I am trying to move my WordPress site from one hosting service to another. I made a backup and restored it on the new host. But I am getting internal server 500 error on the site. I have tried to fix the .htaccess file but its still giving error.
The issue is, if I try to rename it to test it, its not giving the internal 500 error but redirecting me to WordPress installation page called wp-admin/install.php
Can someone help me for solve the issue.Thanks
All the suggestions that are given are great, but if those do not work, then you can try to downgrade PHP. It had worked in my case when I was facing the same error.
You can dig in the error log and find what exactly is causing the error.
Steps for debug.
As previously said: stop all plugins and try again. If problem still exists check logs again. Then switch to default theme and so on.
Btw have moved the DB properly? With the same connection settings.
I think you should check your wp-config.php and PHP version. make sure you have entered correct DB info in wp-config like db_name, password, and table_prefix etc...
if You have changed hosting, probable You need to check database and .htacess file. If You are getting installation page means its database issue, Please check database prefix in wp-config.php file and it will solve your issue.
there are lot of causes for internal server error. The main reasons for internal server errors are.
Corrupt .htaccess file
PHP Memory limit
Faulty code in Theme
Corrupted plugin
Corrupted core files
Incompatible PHP version
In oder to fix this issue, you need to investigate in step by step order.
To solve this issue first of all you need to enable Debug mode and check the issue.
after that try with restoring .htacess file, enabling default theme, disabling plugins etc.
if you still facing 500 internal server issue, follow tutorial on WPERA to fix 500 internal server error. Hope this helps.
I'am getting the message "Can not send a message to the site to verify the absence of fatal errors. As a result, the PHP modification has been canceled. You will need to upload your modified PHP file by other means, for example using an FTP client." when i try to update files on the wordpress editor, i've noticed this error after the last wordpress update.
Thanks,
You are trying to update the code has error. Please check the code.
When i try to login in my project and i got the following exceptions:
Fatal error: Uncaught Error: Cannot create references to/from string
offsets in
C:\xampp\htdocs\wordpress\group-delphi-museums\wp-includes\user.php on
line 56
Error: Cannot create references to/from string offsets in
C:\xampp\htdocs\wordpress\group-delphi-museums\wp-includes\user.php on
line 56
Any ideas ?
can you provide more information please? When did it happen? themes, plugins that may be affecting it. Most likely its a theme issue, if you log into your server or cpannell navigate to /wp-content/themes and delete your theme. Then reinstall 2017 theme, deactavate all your plugins, re-install your theme and use a process of elimination through your plugins to find out the error. If you were editing your theme, you probably just broke it thus no issue with your plugins. It should be sorted then.
I have just updated a site that is using Drupal and have now experienced the horrible WSOD.
I have searched through Google looking for any sort of solution/error log to help me find and fix the issue but nothing has worked. I have tried adding in the 'display errors' code in the index.php file and looked at the error_log file in the public directory and nothing.
I can not login to the admin page and check any modules as the login page for this is returning a 403 error.
Any suggestions?
Please go to Apache Error log. You will exact error messages there.
The log file's location is different for different OS and versions.
e.g httpd/log/error.log
Maybe your Drupal registry is broken.
Fix this using the registry_rebuild script (this is no module!)
There are times in Drupal 7 when the registry gets hopelessly hosed and you need to rebuild the registry (a list of PHP classes and the files they go with). Sometimes, though, you can't do this regular cache-clear activity because some class is required when the system is trying to bootstrap.
You might get something like:
PHP Fatal error: Class 'EntityAPIControllerExportable' not found in ...sites/all/modules/rules/includes/rules.core.inc on line 11
If this happens when you're trying to run update.php, and happens when you're trying to clear your cache, well, you have some trouble. That's what Registry Rebuild is for.
It also may happen that you've moved some module that Drupal requires to bootstrap, and you get a horrible error. Registry Rebuild will also rebuild the system table to get the modules in the right place so you can bootstrap.
You will need PHP-CLI or drush to run this.
https://drupal.org/project/registry_rebuild