- Posts: 92
COMMUNITY FORUM
File path error
- Red Evolution
- Topic Author
- Offline
- Premium Member
Less
More
4 years 9 months ago #174900
by Red Evolution
File path error was created by Red Evolution
Hi Fotis,
Just come across a file path error when adding images in to extra fields.
In the backend, when you add an image, you can press the 'Select' button to view it in a popup which worked fine on our local development. When we pushed it to our dev server and live server though, this stopped working and produced a 503 error. After some investigation I discovered it was a problem with a file path. To load various css and js files to process this, the code was trying to access the 'elfinder' folder, for example:
/media/k2/assets/vendors/studio-42/elfinder/js/elfinder.min.js
/media/k2/assets/vendors/studio-42/elfinder/css/theme.css
However it was unable to find these files. When I went into the file structure, I found that the folder was actually called 'elFinder' (note the capital 'F'). We are checking with our server guy if he can tweak the server to allow for it to treat uppercase and lowercase letters the same as a quick fix but I feel this is probably something that would need to be tidied up in the code too.
Thanks,
Dave
Just come across a file path error when adding images in to extra fields.
In the backend, when you add an image, you can press the 'Select' button to view it in a popup which worked fine on our local development. When we pushed it to our dev server and live server though, this stopped working and produced a 503 error. After some investigation I discovered it was a problem with a file path. To load various css and js files to process this, the code was trying to access the 'elfinder' folder, for example:
/media/k2/assets/vendors/studio-42/elfinder/js/elfinder.min.js
/media/k2/assets/vendors/studio-42/elfinder/css/theme.css
However it was unable to find these files. When I went into the file structure, I found that the folder was actually called 'elFinder' (note the capital 'F'). We are checking with our server guy if he can tweak the server to allow for it to treat uppercase and lowercase letters the same as a quick fix but I feel this is probably something that would need to be tidied up in the code too.
Thanks,
Dave
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 9 months ago #174911
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic File path error
Remove the entire "/media/k2/assets/" folder and re-install K2 to re-insert the files.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Red Evolution
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 92
4 years 9 months ago #174933
by Red Evolution
Replied by Red Evolution on topic File path error
That appears to have worked perfectly. Thanks Fotis
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 8 months ago #174948
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic File path error
You're welcome.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.