• Resolved ojtmartinez

    (@ojtmartinez)


    Hello,

    I have been using this plugin for the past year or so with no issues. Recently, I would say around a month or more ago, users started getting errors on the pages I use this plugin on. These pages are very basic and only containt he short code below as well as a maybe a small hyperlink, nothing else. To my knowledge nothing has changed, unless there as an app update I did not notice.

    The exact short code I am using below, this has been the same since I set up the pages. The variance on the pages is the path but they all point to a sub directory of ‘ojt-files’ and all worked fin un until recently.

    [MMFileList folder="/wp-content/ojt-files/newsletters" orderby="name" order="desc" /]

    The error the users are getting is:

    The folder "/home4/jeepthin/public_html/wp-content/uploads/2022/04/wp-content/ojt-files/newsletters" was not found at: "https://www.jeepthing.org/wp-content/uploads/2022/04/wp-content/ojt-files/newsletters".

    Note that it is resolving to the media library but the path I have used has nothing to do with the media library. I noticed on the support forum that someone else had this issue around 11 months ago, you mentioned changing the media settings to not organize by month and year, I turned this option off and still get the error so I turned it back on.

    In my use case I am attempting to pull files from a specific folder on the server but that folder is not in the media library directory structure, it is completely outside of it.

    Any help you could provide would be appreciated!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Adam Bissonnette

    (@mmanifesto)

    Looks like your upload settings were maybe changed to put your media files into year/month folders. Try using the shortcodes like this [MMFileList folder=”/../../../wp-content/ojt-files/newsletters” orderby=”name” order=”desc” /]

    You might need more or fewer /../’s in there. You could also swap out the wp-content for one fewer /../

    Thread Starter ojtmartinez

    (@ojtmartinez)

    I have attempted to add the /../ but had no luck, i have tried multiple instances, one, two, three, four and five of them with no luck. All i get is those additional characters in my path within the error. See sample error below.

    The folder “/home4/jeepthin/public_html/wp-content/uploads/2022/04/../../../../../wp-content/ojt-files/newsletters” was not found at: “https://www.jeepthing.org/wp-content/uploads/2022/04/../../../../../wp-content/ojt-files/newsletters”.

    This website has always had the media set to organize by year and month, this never changed until I started troubleshooting this error. I even toggled it on and off as I attempted to change the number of /../ in the path.

    If you look at the full path you will see that the plugin appears to be rendering the path out with two wp-content folders. The folder I need the plugin to look at is a sub directory of wp-content but has nothing to do with the media library. It appears that it is using the path I input but only looks in the upload directory for the surgent year and month. I do not want it to look at the media library, but it (assuming plugin) is adding the ‘uploads/2022/04’ path in front of the path I stated in the short code. I need it to look at one individual folder outside of the uploads folder.

    • This reply was modified 2 years, 7 months ago by ojtmartinez.
    Thread Starter ojtmartinez

    (@ojtmartinez)

    Do you have any other thoughts on how we can get this plugin working?

    Plugin Author Adam Bissonnette

    (@mmanifesto)

    Sorry for missing your note here I was off on holidays.

    Looking at the path in that error statement:
    /home4/jeepthin/public_html/wp-content/uploads/2022/04/../../../../../wp-content/ojt-files/newsletters it look like there are five ../ sections I believe are coming from the shortcode. This will move it up past the folders 04/, 2022/, uploads/, wp-content/ and also public_html/ – I think this is problem because it’s looking for your content in jeepthin/wp-content/ojt-files/newsletters/.

    If you change it to use just four “../../../../wp-content/ojt-files/newsletters” then that should work. Alternatively you could use just three and remove the wp-content from your shortcode too “../../../ojt-files/newsletters” because wp-content is already in your path you don’t need to go past it then back up.

    Let me know if this works. I can do a quick hangout call or screenshare session if you want to try figuring this out together too.

    Cheers,
    Adam

    Thread Starter ojtmartinez

    (@ojtmartinez)

    I ended up using the “../../../ojt-files” path and removed the wp-content directory and all the pages I use this on are working again.

    Thank you for the assistance, I do appreciate it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error, Says Path not Found’ is closed to new replies.