Support

Akeeba Backup for Joomla!

#8373 Missing template images

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Monday, 15 March 2010 07:42 CDT

user8259
Greetings.
I have backed up my live site, and tried to install it on my local machine, everything seems to go fine, except none of the images for the template appear. I can see that its trying to call the images from the wrong location, but i dont know how to change that. Its missing one level.
This appears:
http://localhost/templates/daniels/images/danielsheader.png
When it should be this:
http://localhost/joomlaproduction/templates/daniels/images/danielsheader.png

nicholas
Akeeba Staff
Manager
Edit your .htaccess file on your site's root. Find the line starting with RewriteBase. Comment it by placing a hash (#) in front of it and save the file. This really is an Apache setup issue ;)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user8259
Firstly thanks for the quick response, and your help.

I need to comment out that line even though I have the rewrite mod enabled in Apache?
I'm trying to duplicate the production server as closely as possible.

Thanks again.

nicholas
Akeeba Staff
Manager
You have to comment out that line because you have mod_rewrite enabled. For more info about what each rewrite directive does, read the Apache manual. It says:
The RewriteBase directive explicitly sets the base URL for per-directory rewrites. As you will see below, RewriteRule can be used in per-directory config files (.htaccess). In such a case, it will act locally, stripping the local directory prefix before processing, and applying rewrite rules only to the remainder. When processing is complete, the prefix is automatically added back to the path. The default setting is; RewriteBase physical-directory-path

Your live host has the site stored on its root. Your server has the site stored on a subdirectory. Using RewriteBase / will cause all URLs to be rewritten relative to the root. Commenting it out should pick up the correct subdirectory, as in most Windows pre-packaged server environments the URLs are directly linked to physical paths, unlike the case the Apache manual discusses.

Moreover, if you have trouble, you can always edit your configuration.php file and change the $live_site parameter:
var $live_site = 'http://localhost/mysite';

This isn't really necessary, but some Joomla! experts insist that it's a good idea to set it nonetheless. IMHO, it's not a good idea unless your site doesn't work otherwise, i.e. you have a buggy host.

If you want to match your live environment as closely as possible, you may want to read two articles I've written on the subject. They involve a bit of work, but I know they work because I use that trick on my local Win7 testing server :)
First part: The Holy Grail of local web development servers - Setting up Apache
Second part (simplified Apache setup): The Holy Grail of local web servers revisited

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user8259
Thank you very much for the in-depth answer. I know its turned out to be beyond the scope of Akeeba but I really do appreciate the help. I'm going to read over the suggested articles, and make those changes tonight. Wanted to drop a quick thanks for your help.

nicholas
Akeeba Staff
Manager
The motto of this support forum is "We are here to help". If it's something we can point you to, even if it's not directly related to Akeeba Backup, we will. My idea for support goes beyond the simple "do this, do that, oh sorry this is not our software's fault, bye". I am interested in providing a great holistic experience for our users and teach them everything I wish someone had taught me before I spent nights and days - mostly nights! - looking for it. I don't know if I always succeed, but I honestly try ;)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!