Plugins error in WordPress - php

Im trying to install som plugins on my WordPress site but Im gettin the error message halfthrough the progress:
"Downloading install package from https://downloads.wordpress.org/plugin/responsive-lightbox.1.4.4.zip…
Unpacking the package…
Could not create directory."
The site is hosted as localhost and Im using phpMyAdmin as database if that's to any help.
The plugins map is inside the wp-content map. I have given access so it can be overwritten and edit by anyone. But it seems not to fix my problem.
Before I could upload I had some problem with FTP. WordPress kept asking me for FTP but I shut it off by adding
<?php
define('FS_METHOD', 'direct');
?>
in the "functions.php" file. Don't know if that's critical to my problem, but just mention it to be on the safe side.
So, how do I solve this problem about plugins?
Thanks!
yours sincerely,
winterwind

Put this line of code in your wp-config.php right below your database credentials, not in the functions.php.
If this problem still occur change the permissions in your wp-content folder (and subfolders to 777 (only on localhost) by doing this in your wordpress-folder:
chmod -R 777 wp-content
This is kinda dirty, but works fine on localhost.

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.

WordPress website hook error

I have a problem with my site. I migrate the website to another hosting provider and website not working now. I dont know why. I tried reinstalling the files, WordPress version, turn off the plugins and nothing happend.
Is there anybody with experience in this error?
Fatal error: Class 'Requests_Hooks' not found in
/data/www/22560/nejrychlejsiauta_cz/www/wp-includes/class-wp-http-requests-hooks.php
on line 17
This means that the folder "Requests" does not exist, try to get it from another WordPress installation of the same version, compress it and upload it to the site where the error is, then unzip it and it will work.
Regards..
this is what worked for me with this same exact error. I had the file Hooks.php that went missing. It is located here: wp-includes/Request/ With my install theres a file named Hooker.php and Hooks.php in that same directory. I had an identical install in another directory for a diff site and after cross checking the files, Hooks.php was missing on the broken website. After I installed it back on the site, the site works fine.
Hopefully this helps someone!
This happens in a case when you copy, e.g. in Total Commander, and have left the field "convert file names to lowercase" checked. As the path to the class file is not wp-includes/requests/hooks.php but wp-includes/Requests/Hooks.php
So uncheck this option.

Wordpress plugin install asking for FTP Information

Good day,
I'm trying to install plugins in a new wp theme but it always asks for FTP
Information. After reading different blogs, this is what i have done:
I added define('FS_METHOD', 'direct'); in wp-config.php file
I set the permission of the project folder and all inclosed folders to read and write
But all the above failed to solve my problem.
I'm working on a Mac, with Sierra as operating system and I'm using Xampp.
Check the attached picture.
Kindly help
Regards
The easiest way to solve this problem is add the following FTP information to your wp-config.php
define('FS_METHOD', 'direct');
define('FTP_BASE', '/usr/home/username/public_html/my-site.example.com/wordpress/');
define('FTP_CONTENT_DIR', '/usr/home/username/public_html/my-site.example.com/wordpress/wp-content/');
define('FTP_PLUGIN_DIR ', '/usr/home/username/public_html/my-site.example.com/wordpress/wp-content/plugins/');

What are all the possible fixes to the error 'Unable to create directory /wp-content/uploads' when trying to upload images in Wordpress?

I am getting the following error
Unable to create directory /wp-content/uploads. Is its parent
directory writable by the server?
whenever I try to upload images via the Media tab in Wordpress. I am running on a LAMP setup, specifically on Ubuntu with Wordpress version 4.1.1. I'm working on a localhost site otherwise I would provide a link. I've tried all of the solutions that I have found and so far, none of them have worked.
Things I've tried:
I recursively changed the permissions of the wp-content folder to 777. (I'll downgrade the permissions to a safer setting after this problem is solved.)
I changed the group owner of the uploads folder to www-data as seen in this solution so that Apache would have group ownership of the folder.
I deleted the .htaccess file and resaved the permalinks setting.
I tried changing the uploads path in wp-config.php.
I asked this same question on the Wordpress forums and received one answer that I tried, but it didn't work for me. At this point I have no clue what to try. If anybody has an idea of what I need to do to get this to work it would be greatly appreciated.
When permissions or files become corrupted, it can often be worth re installing the WP core files from scratch, I recommend downloading the WP files from the codex site.
We often help clients with support via hangouts, please look us up at https://plus.google.com/+Myfavoritewebdesigns https://plus.google.com/+JoshuaJacoby/posts
Thanks!
My Favorite Web Designs
Joshua Jacoby
1006 N. 92nd Circle
Mesa, AZ 85207
Office: 480-335-1330
AZ WordPress Designer

Categories