Wordpress plugin Invalid header error - php

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

Related

Wordpress 404 after manual install

My core wordpress files got hacked because of a plug in. My site started giving malicious redirects.
While trying to edit wp-config.php, my site went fully offline. I tried a full manual reinstall because of this and I needed new core files anyway. My site is still not online. I have the database, database password, and username in wp-config.php. Also, I have everything in the document root for the correct domain. Maybe there is some conflict between the two domains with my host?
Does anybody know what might be causing this 404. I can't get access to the dashboard.
I got a backup before doing anything and I downloaded wp-content. The original database is still available.
I tried an automated install through cpanel with fresh everything and this would not get me to a dashboard.
Well, 404 error is not because you can't connect to your database. You should see Database connection error message if database is the problem. Did you edit .htaccess file maybe? You can try to remove everything there and put default one for Wordpress.
May be your site compromised. Deactivate the plugins using the file manager provided by your host and rename wp-content/plugins to wp-content/plugins-old, also deactivate the theme or rename the wp-admin folder on root directory and then take a try to login. Also turn on the debugger.

FTP Credentials requested when trying to activate WordPress Theme

Running an instance of Bitnami Wordpress on AWS Lightsail. Getting the following screen when trying to activate a Wordpress theme (JobCareer):
UPDATE #1 Turned on debug and saw the error information in the above screenshot.
Other themes and plugins I have tested all installed and activate without issue, so it's probably something specific to this theme.
I have made sure that define('FS_METHOD','direct'); is set inside wp-config.php file.
The wp-content folder and sub-folders/files are all chown to bitnami user and have the appropriate permissions (folder:755 & files:644).
At a loss as to what else to try. Thanks for any help you can provide! :)
It's definitely a files & directories permission issue. Move the define('FS_METHOD','direct'); line back to where it was (that change is causing a different error).
The 'www-data' user is the default user for Apache (and other HTTP servers?), in case you didn't know.

Magento: Always redirecting me to "/downloader" path

I hope you're good.
I have troubles with magento. A customer required me for migrating a magento website to another hosting service. I made the backup with cPanel tool (either database and public_html site with all the files uploaded).
When I restored all the site (and after change some folder and file permissions) and the database, the Magento site are always showing me the "Downloader" section and when I click to "continue magento installation", it returns to the downloader section.
In the console appears that all the files were already installed (doesn't throw me an error or issue) and in the cPanel logs doesn't appear any kind of issue
Can you help me pls? My customer are pursuing me with a torch and a kendo stick to solve this trouble D:
P.D. I tried using FTP, changing the file permissions in magento's downloader section to the same I have in the root directory (755 for folders and 644 for files) but I have in the lib folder 777 permissions, does it affect?
UPDATE
I have uploaded the snapshot I have in the hosting and It appears me the following exception
Fatal error: Class 'Zend_Exception' not found in /home/estetica/public_html/lib/Zend/Db/Exception.php on line 34
So, when I printed all the classes that the framework is using and I found that the Zend/Db/Exception are loaded before the Zend/Exception class
So, where can I modify the order that the classes are imported by magento?

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.

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.

Categories