Wordpress Fatal errors - php

I was editing the file map.php when I started getting errors. So I when to my FTP and delete map.php from it. Now I am having this error. I can't get access to neither my admin panel nor my website. Here is the URL : http://eyeandretina.com.au/
Warning: Class 'WPBMap' not found in /home/eyeandre/public_html/wp-content/plugins/js_composer/include/helpers/helpers_api.php on line 17
UPDATE :The error seems to be in the directory js_composer

The best way to handle this is to first rename the folder where the plugin lives, aka (js_composer) to (js_composer_old) or something like that.
Check your site, if the error was in that plugin indeed, the website should now be able to load and you can access your admin.
You might have some functionality missing because you just deactivated the JS visual composer plugin.
Next, reupload the plugin from your local theme backup/original download file. Or maybe your theme offers autoinstallers from within the admin panel.

Related

Update PHP File via Wordpress Theme Editor Fails

I'm unable to update PHP code via the WordPress theme editor anymore. When I try to change the functions.php of my child theme with just adding a comment it fails with the following message:
Unable to communicate back with the site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
I have no idea where to start - can I access a more precise error message somewhere?
Kindly check the permissions of the theme folder, WordPress site must not be able to write the changes in the file. That is why this error is coming.
Hope this helps

Wp-admin dashboard not working after website migration to another hosting

I have migrated my wordpress site from one hosting to another by copying sites files and creating new database. I have correctly updated the database information the the wp-config.php file and the site is running smooth. However i cannot log in in the admin panel. It shows the admin login username and password page but after i submit login it shows the following error
Fatal error: Call to undefined function get_site_transient() in /home/content/XXXX/XXXX.com/XXX/wp-includes/update.php on line 466
Help appreciated and thanks in advance.
You should try by re-uploading your wordpress core files.
It means that all files (except wp-content folder , wp-config file) needs to be replaced
with files from a fresh WordPress install.
This will NOT remove any of your information, but it may solve the problem in case any file was corrupted.
Make sure to back-up your data in case of emergency.

Wordpress plugin Invalid header error

I am working on a Wordpress site hosted by Parallels and uploaded via the plex panel.
When I am installing a new plugin, first, I am notified that the plugin has been successfully installed.
But when I click on Activate, I get an error message saying:
"The plugin does not have a valid header."
I am not sure what is causing this error, and it does on every Wordpress plugin that I try to install.
When I try to upload the plugin manually by browsing for a folder and clicking upload, I get a different error message:
"Unable to create directory wp-content/uploads/2013/12. Is its parent directory writable by the server?"
These two errors are really puzzling and neither myself or my client can install any plugins.
P.s. The above features work fine on the local server - it is just the development server that I am having issues.
Do you have FTP access to the site? "Unable to create directory wp-content/uploads/2013/12" says to me that the permissions are not set right on your wp-content folder. Set it to 755, or, if you're feeling brave, 777 (though there are security concerns there). Once the permissions are set, try reinstalling again.
When plugin key "$plugin" doesn't match with plugin files then wordpress generate this error on activation time.
You can check the code by following code
file path Error is generating from
wp-admin/includes/plugin.php
line number 920
//use following code to check the keys.
echo $plugin;
print_r($installed_plugins);

Wordpress: fatal error no access on control panel/admin panel

During a clean up of my plugins inside of Wordpress i deactivated the: smart archives reloaded plugin.
Next up: a fatal error when i refreshed the page.
Fatal error: Class 'SAR_Generator' not found in wp-content/themes/waldorf/functions.php on line 469
So i couldn't access the site and also the wp-admin / control panel anymore.
Before the clean up i downloaded the whole folder for a backup.
i replaced this folder with the backupped version: no change
replaced functions.php / wp-admin & wp-includes: no change
checked my wordpress version: 3.5.1 downloaded a fresh wordpress folder and replaced those wp-admin & wp-includes with the ones on the ftp: no change.
What to do ??????
It's difficult to provide a quick reply without seeing what the exact lines were in the waldorf theme that you have, however, it seems to be that the theme assumes that the Class 'SAR_Generator' is available by default and doesn't check if this isn't the case.
I suggest logging in via ftp and finding this section of code in your functions.php around line 469 and comment this out and possibly other lines that relate to this.

Broke PHP and caused Wordpress white-screen on Admin

I was doing some work on a wordpress site and another programmer had also been working on it. I was doing the design work, he was doing some custom PHP scripts. (we don't know each other.)
Some of his code was inserted in the wrong place and I made a few changes that I was confident I could undo if they broke the site. 5 hours later I go to log in and all admin screens are blank white. The site is still up and running though.
I tried to switch out the files I altered via ftp, but I must be forgetting something because it is still not working.
I checked the error log on the server and found one fatal error:
[01-Mar-2012 11:25:34] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home5/bestbik1/public_html/silvertoday/wp-content/themes/genesis/lib/init.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home5/bestbik1/public_html/silvertoday/wp-content/themes/streamline/functions.php on line 3
I am not experienced enough at PHP to know how to proceed to get the admin back up and working.
What does each part of this error mean specifically?
and
What steps do I take to correct or troubleshoot?
UPDATE
Finally gave in and did a fresh install of the most recent version of the Genesis theme framework. Everything works again. Wanted to find the bug, but sometimes you gotta move on. Thanks everybody!
It looks to me like you're using a child theme of the Genesis theme framework. Certainly, you've got a functions.php file in your "streamline" theme that's trying to include Genesis's init.php, which is normally the first line of any Genesis child theme's functions.php.
Assuming that your theme is a Genesis child theme, it looks like your Genesis theme install has become corrupt, with its lib/init.php missing or having the wrong permissions. I'd try removing the Genesis theme and reinstalling it (which may mean deleting and re-uploading the wp-content/themes/genesis folder.)
(You didn't uninstall the Genesis theme, did you? If you're using a Genesis child, Genesis has to be installed even if it's not the "active" theme.)
The error means that a required file :
/home5/bestbik1/public_html/silvertoday/wp-content/themes/genesis/lib/init.php
Could be not opened - there could be a number of reasons
The file is not present
The webserver does not have the correct permissions to read the file
I would first check that the file is present on the server in question.
Using the require_once() or require function in PHP means that is a required file cannot be opened the script is halted - this is the reason for the white screen.

Categories