Update PHP File via Wordpress Theme Editor Fails - php

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

Related

Menu Editor in Wordpress WP-ADMIN generating error

I'm getting the following error when I open the menu editor in the admin options.
The site is on a IIS web server and it's currently using php v5.6.0
So far I have tried the following approaches:
adding define(CONCATENATE_SCRIPTS', false) tag in the wp-config file.
changing the php version on the IIS from 5.6.0 to 7.1.21
I have less than a months working with wordpress and I had never used php before.
--------------------- EDIT ---------------------
It seems the issue might be related to permissions because when I try to access the javascript file which is not missing from the js folder I get the following message:
This is the only file in the folder which I cannot access. I also checked the permissions of the file in the server and it has the same as the other files.
First:
You should post the code which you are using, if you are not using any code, the paste proper screenshots here.
Second:
Its a syntax error which means there's a mistake in your code. So you need to check the code, there's an extra "<" somewhere in the code.

Wordpress Fatal errors

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.

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);

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.

Index page coming blank after make a new installation in server in wordpress 3.3.1

I make a new installation in my server and able to login with wp-admin.
I activate the theme from my wp-admin but when i visit my site it shows me as empty page , i am unable to find out the problem .
What is solutions for this type of error.
There is a PHP error somewhere causing your WP to white screen.
Put WP into debug mode by adding this line to your wp-config.php
define('WP_DEBUG', true);
You should now see some sort of output on the page, update your question if you still can't work it out from this information.
If it's a brand-new server, make sure there aren't any index.html/index.htm files lurking in the root of the website.
Try just using the default 2011 theme. If it loads up fine, then you have a problem with your theme.
You might also check for whitespace before <?php and after ?> in wp-config.php and your theme's functions.php file.
Put php.ini file in both front and back end. that will be work definitely..
hope it helps.. Let me know

Categories