Plugin Author
Arnan
(@adegans)
AdRotate looks if the folder exists and if it’s writable.
If it’s not, the error shows. This is not related to FTP usage.
Hello,
To fix this problematic issue with no further changes to your configuration, additional creation of folders, or anything you don’t want to do, remove this piece of code:
if(!is_writable(ABSPATH.$adrotate_config['banner_folder'])) {
$error['banners_folder'] = __('Your AdRotate Banner folder is not writable or does not exist.', 'adrotate-pro').' <a href="https://ajdg.solutions/manuals/adrotate-manuals/manage-banner-images/?utm_campaign=adrotate-manual&utm_medium=dashboard-notification&utm_source=adrotate-free" target="_blank">Set up your banner folder</a>.';
}
From line 680 (aprox) in file wp-content/plugins/adrotate/adrotate-output.php
Hope this helps. Cheers!
-
This reply was modified 9 years, 5 months ago by
eleb.
Hello,
I can’t make this message go away either.
I’ve tried permissions 644
(https://ajdg.solutions/forums/topic/adrotate-banner-folder-is-not-writable/)
and I’ve tried permissions 755
()
And I’ve tried creating, and setting, the folder in a new location (also with 644, and 755).
No matter what–the message will not go away.
I’d actually like to start using the folder instead of the WP Media folder.
But when I try to create an ad and set media from the AdRotate Pro banner folder there is a drop down that says:
No files selected
– No files found
So, I don’t know how to get this working, nor how to get banners into the folder this is having issues with.
Chris
Since making the folder writable won’t make the message go away, I fixed it another way.
Add this to your CSS:
.ajdg_notification {
display: none!important;
}
Spoke too soon–this works in the console, but not in practice.
This post recommends permissions 0644:
https://ajdg.solutions/forums/topic/adrotate-banner-folder-is-not-writable/
I’ve also tried the same as wpcontent 0755 = fail.
A nice code revision would be to disable this notice if users are not using the banners folder.
When clients look at the back end of their sites they see this and must wonder about our skill sets at not being able to make the message go away.
-
This reply was modified 8 years, 10 months ago by
SmileWP.
LP
(@f1news)
Hi,
I had the same problem today.
After I changed UID (Chown) from Apache to Admin, the message was gone.
New site – same issue.
AdRotate has detected one issue that requires your attention:
Your AdRotate Banner folder is not writable or does not exist.
The only thing that made the unnecessary warning go away was creating the non-existent banners folder in /wp-content/ and then setting it to 0777.
How secure is that folder now?
How about a checkbox: Do you want to use a banners folder? [_] Yes.
(If unselected you will not get the warning message)
That would create fewer issues for users as well as the developer.
AdRotate has detected one issue that requires your attention:
Your AdRotate Banner folder is not writable or does not exist.
SOLUTION
Use SSH and change the ownership to the CPanel user for that install.
Or, ask your support host to do that.
=======================================================
OR
How about a checkbox: Do you want to use a banners folder? [_] Yes.
(If unselected you will not get the warning message)
=======================================================
BTW — of course 0777 is not secure.
Our host support changed ownership to the Cpanel user, set permissions to 755, and the unnecessary warning message is now gone.
Per our support tech he did not know of any way to do this in Cpanel. And in SFTP I could only change file permissions–not ownership.
He shared this article:
https://help.liquidweb.com/s/article/Logging-into-Your-Server-via-Secure-Shell-SSH?name=Logging-into-Your-Server-via-Secure-Shell-SSH&fromCase=1