Hey guys,
Can anyone tell me why this is happening and how to easily fix?
I have exported a DB from the live server and this is happening on the development server after the import.
Many thanks,
Jordan
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
July 08, 2013 12:32pm
Subscribe [2]#1 / Jul 08, 2013 12:32pm
Hey guys,
Can anyone tell me why this is happening and how to easily fix?
I have exported a DB from the live server and this is happening on the development server after the import.
Many thanks,
Jordan
#2 / Jul 08, 2013 3:11pm
Jordan, most likely you need to adjust your server path and url to your image directory:
CP Home -> File Manager -> File Upload Preferences -> Edit File Upload Preferences
Depending on how you have your dev server set up will dictate what those paths should be.
-jim
#3 / Jul 08, 2013 5:46pm
Hey Jim,
I thought that would have been the cause too, but it has been set and changed, but it remains as {filedir_x} in the publish page for some reason. I have tried the usual checks: paths in general configuration, upload directory paths, template paths, synced the files and still nothing unfortunately.
#4 / Jul 08, 2013 6:41pm
The image you provide only shows the thumbnail for the image. Did you move the thumbnail folder inside your file upload directory to the dev server? If so, are your permissions set properly on the dev server for the file directory and the thumb directory inside? What happens when you go into file upload permissions and synchronize the directory? Can you access the thumb and full image from the apparent url you are creating? What environment are you using for dev?
Lots of questions, I know. But moving installs from live to dev and back again can create issues with paths and permissions that need to be solved.
-jim
#5 / Jul 09, 2013 5:34am
Hey Jim,
I found the issue - the problem was between my keyboard and my chair - I’m so sorry for wasting time. It turned out that the images in question didn’t exist on the dev server.
What happened was:
* I synced the live and dev DBs, pulled down all the files on live except for the massive images directory, making a mental note to come back to that later (this is where things started to go wrong)
* Changed paths, permissions and synced files (there were already files in these directories on dev which was making me think I had already uploaded the live images to dev), and then ran into the {filedir_x} issue
To fix, I re-uploaded the files and synced from the file upload preferences page.
Thanks for your help Jim, when I ran through your questions I soon realised what was wrong.
*runs away embarrassed* 😊
Many thanks!
Jordan