Are there files in your directory? If no files, then you need to use [fileaway directories="true"]
If you don’t have directories enabled, and there are no files in the directory, then [fileaway] will output nothing.
Hi Thom,
still doesn’t work. It even doesn’t return an error, just blank page with title.
May it be my php version? I use php 7
-
This reply was modified 7 years, 1 month ago by
silenttt.
It’s not the php version.
Please provide your shortcode and your Base directory setting.
Please tell me about your WP installation setup.
Is wordpress installed in a subdirectory of your domain root, or in the primary directory?
Please tell me what type of server you are using.
I just have installed it on localhost wordpress via xampp, as I want to check it before the implementation on the server.
(‘DB_CHARSET’, ‘utf8mb4’);
Screenshots:
https://prnt.sc/njp469
https://prnt.sc/njp4fx
OK. Does “Directory” exist? Use this shortcode instead:
[fileaway directories="true" makedir="true"]
It creates a directory with some index file. I have uploaded some jpgs there but still doesn’t show anything
So initially you were pointing to a directory that didn’t exist.
Now File Away has created it for you, and you say you have since uploaded some image files and they are still not showing.
Give me an example of a filename you uploaded to C:\xampp\htdocs\wordpress4\Directory
Also try this shortcode: [fileaway directories="true" makedir="true" debug="true"]
then tell me what it says
I have uploaded 2.jpg
I have tried the shortcut and it still doesn’t work https://prnt.sc/njpad7
Sorry, try:
[fileaway directories="true" makedir="true" debug="on"]
Open up wp-content/plugins/file-away/lib/cls/class.fileaway.php
Go to line 31 and add two forward slashes // to the beginning of the line that says:
if(!fileaway_utility::realpath($dir,$rootpath,$chosenpath)) return;
So it should now look like this:
//if(!fileaway_utility::realpath($dir,$rootpath,$chosenpath)) return;
Save the file.
Remove debug="on" from your shortcode, so your shortcode should now be: [fileaway directories="true" makedir="true"].
Reload your page.
Tell me if it works.
Works! https://prnt.sc/njpf42
Thank you, Thom
You mentioned on forum that you are working on new plugin. When do you plan to upload new plugin?
OK. That’s not a fix. That’s bad news. It means the directory isn’t validating as a realpath. I am installing xampp on my pc right now to see if I can duplicate your issue or if it is unique to your setup.
I had the same problem when I installed it in the morning on wordpress 5 on IIS.
I will check it tomorrow and let you know
I have duplicated the issue on my install of xampp. I will find a fix and push a new version when I do. I will comment back here when it is available for update.