kdynamic
Jul 13 2008, 09:09 AM
I moved a whole blog to a new server (old one was hit by lightening... don't ask!) and everything seems to be working fine. New entries look normal, and all the old entries are in place, with one glaring difference: all the images aren't displaying. Instead it's displaying the filename as text.
I checked the code and it looks fine. it says filepath/abc.jpg in the source code. If I copy/paste that and load filepath/abc.jpg in its own window it loads. All the images are there on the new server. However, apparently they are now unknown as assets to MT. They now do not show in asset manager, even though they were originally uploaded to the old server thru MT. I tried re-uploading one, and it says "image with the filename already exists" so I know they are in the folder MT expects to find them in.
How do I get MT to realize they images are there and display them?? Please do not tell me I have to re-upload them one by one (there are several hundred).
Any help would be appreciated...
OtherNiceMan
Jul 13 2008, 11:53 AM
Do you have a link?
kdynamic
Jul 13 2008, 02:15 PM
QUOTE (OtherNiceMan @ Jul 13 2008, 12:53 PM)

Do you have a link?
www.zaxart.com/sketchbook
The first few entires are new, then they stop displaying. If you look at the source and try the SRC URL, the images will display. They were displaying fine before I moved it to the new server.
Thanks.
OtherNiceMan
Jul 13 2008, 10:00 PM
Looking at the code there is a difference in the older images.
The new images have a different code block which inserts a thumbnail and code to open full image in a new window. The older images do not have this and have a different class for the image.
Why this is the case I am not sure, it could be that the file system path for the assets in the database has changed because of the server move but the database is not updated.
kdynamic
Jul 14 2008, 01:35 PM
QUOTE (OtherNiceMan @ Jul 13 2008, 11:00 PM)

Looking at the code there is a difference in the older images.
The new images have a different code block which inserts a thumbnail and code to open full image in a new window. The older images do not have this and have a different class for the image.
Why this is the case I am not sure, it could be that the file system path for the assets in the database has changed because of the server move but the database is not updated.
I see what you mean... is there any way to fix this for all entries at once?
OtherNiceMan
Jul 14 2008, 02:07 PM
It is going to need some SQL on the mt_asset table.
kdynamic
Jul 16 2008, 10:26 AM
ok so what exactly do I need to change on the mt_asset table?
OtherNiceMan
Jul 16 2008, 10:53 AM
it is either asset_file_path or asset_url or both.
%s is a shortcut for mt-static and %r is a shortcut for blog root.
kdynamic
Jul 18 2008, 03:37 PM
is there somewhere with details of how to do this? i have no experience with sql. and would i have to add this for all the images or would this just be a path to the dir? also, where do I find the mt_asset table?
thanks
OtherNiceMan
Jul 19 2008, 10:55 AM
What database backend do you use? mySQL, SQLite?
kdynamic
Jul 22 2008, 02:09 PM
QUOTE (OtherNiceMan @ Jul 19 2008, 11:55 AM)

What database backend do you use? mySQL, SQLite?
I don't know, as this is the website owner's account on a shared server commercial host. They just gave me the login info and I installed MT and imported the blog, which I had exported from the old server. Would this be something to ask the hosting company?
I think I could just re-upload the images and rewrite the same files that are already on there, and they'd be recognized, but do I have to do them one my one?? Can you do a mass image upload?
OtherNiceMan
Jul 22 2008, 10:51 PM
In your mt-config file which database driver are you using?
I think that you would have to upload one at a time, but I am not 100% sure.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.