Support

  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.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.