1. hdoeve
  2. Support
  3. Thursday, June 12 2014, 03:36 PM
How to handle change of website root directory.

I've build a website in a subdirectory of the hosting website root.

I've moved the website to the root. Now I have a problem with the profile images (avatars) located in /images/profiler

When i right click on the placeholder to copy the image url, the image url appears to be:
http://images/profiler/image-name.jpg instead of:
http://vithas.nl/images/profiler/image-name.jpg.

Note:
- the avatar images have been imported with the CSV import plug-in !!
- AcyMailing, Kunena, Simple Calendar, RSFormPro and Xmap show no problems
Accepted Answer
admin Accepted Answer
Admin
You can try this: http://stackoverflow.com/questions/5956993/mysql-string-replace

a single query to replace the avatar fields like:
UPDATE #__jsn_users SET avatar = REPLACE(avatar, '/images/', 'images/');

replace #__ with your DB prefix.
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
sorry but I not understand!
Can you explain me better, maybe with an example or link to see this issue.
  1. more than a month ago
  2. Support
  3. # 1
hdoeve Accepted Answer
Which part of the story you do understand:
- the migration of the website from a subdirectory to the hosting root?
- the problem with the avatar images?

Originaly the website was at: /htdocs/public/www/somedir. All imported avatar images showed correctly

Than I moved the website to /htdocs/public/www . Now only a placeholder image is visible.

Refer to the urls in my first post: it looks like the EasyProfile component lost the correct position of the standard Joomla images folder, at least for avatar images added before the migration.

Attached is a screen print of part of the member list. It shows 2 members with no avatar (that's OK), 1 member with avatar picture showing (added after the migration) and 2 members with placeholders (blank rectangle) instead of their avatar images which were added before the migration (using CSV-import).
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Ok I understand!
I have tried to register an account but I need to admin approve. my username is EpTest
I would like to see.
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
I have made some test on my test site. and maybe I found the problem.

Maybe in CSV file you have set avatars path like /images/profiler/.... instead images/profiler/.... ? (with "/" at the begin of path)
  1. more than a month ago
  2. Support
  3. # 4
hdoeve Accepted Answer
You EpTest is now activated.

What would you like to see?
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
I want see the html code generated.
the source image are not http://images/profiler/... but is //images/profiler/...

This confirms what I wrote in my previous post
Maybe in CSV file you have set avatars path like /images/profiler/.... instead images/profiler/.... ? (with "/" at the begin of path)
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
With other component works but not well. in src I will see: http://vithas.nl//images/profiler/image-name.jpg (double slash)

In you previous site worked because you had src image like /folder//images/profiler/image-name.jpg
  1. more than a month ago
  2. Support
  3. # 7
hdoeve Accepted Answer
Yes indeed, I used /images/profiler.

How do I correct this, without importing them again?
  1. more than a month ago
  2. Support
  3. # 8
admin Accepted Answer
Admin
Alternative:
You can replace(with text editor) the avatar path into your CSV and reimport , the system will be update users.
but still having the problem with a`, รค, etc
  1. more than a month ago
  2. Support
  3. # 9
hdoeve Accepted Answer
The SQL-script worked, images are showing up correctly.

Thanks again,

Hans Doeve
  1. more than a month ago
  2. Support
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.