• Resolved silenttt

    (@silenttt)


    Hi,

    I am a beginner. I have found this plugin today and installed it on wordpress 4.9
    According to the instruction I set up new directory. Then I added shortcode [fileaway] to my page paragraph. Unfortunately it doesn’t display anything. Should I do something else to run it?

    Thanks in advance

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author thomstark

    (@thomstark)

    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.

    Thread Starter silenttt

    (@silenttt)

    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.
    Plugin Author thomstark

    (@thomstark)

    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.

    Thread Starter silenttt

    (@silenttt)

    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

    Plugin Author thomstark

    (@thomstark)

    OK. Does “Directory” exist? Use this shortcode instead:

    [fileaway directories="true" makedir="true"]

    Thread Starter silenttt

    (@silenttt)

    It creates a directory with some index file. I have uploaded some jpgs there but still doesn’t show anything

    Plugin Author thomstark

    (@thomstark)

    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

    Thread Starter silenttt

    (@silenttt)

    I have uploaded 2.jpg
    I have tried the shortcut and it still doesn’t work https://prnt.sc/njpad7

    Plugin Author thomstark

    (@thomstark)

    Sorry, try:

    [fileaway directories="true" makedir="true" debug="on"]

    Thread Starter silenttt

    (@silenttt)

    I see the following
    https://prnt.sc/njpcoi

    Plugin Author thomstark

    (@thomstark)

    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.

    Thread Starter silenttt

    (@silenttt)

    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?

    Plugin Author thomstark

    (@thomstark)

    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.

    Thread Starter silenttt

    (@silenttt)

    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

    Plugin Author thomstark

    (@thomstark)

    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.

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Doesn’t display files’ is closed to new replies.