Support

Admin Tools

#40789 Restoring Site on LocalHost

Posted in ‘Admin Tools 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
4.4.5
PHP version
8.2.4
Admin Tools version
7.5.3

Latest post by nicholas on Thursday, 06 June 2024 02:10 CDT

CarolynSue

Kickstart 8.0.5

Everything installed OK. Opened the system as localhost/llqg0602/administrator and immediately got a 500 error.

Renamed .htaccess file as it has all your AdminTools additions. Just used an .htaccess that runs fine on my laptop which has no AdminTools modifications.

Still 500 error.

Looked at configuration.php file and found two problems.

1. public $log_priorities = array

('0' =>

'all');

was changed to

public $log_priorities = array ('0' => 'all');

2. public $cache_path = 'https://www.llqg.net/customer/public_html/cache'

was changed to

public $cache_path = 'C:/xampp/htdocs/LLQG0602/cache';

 

Now, all is good. Unfortunately, I have no screenshots.

CarolynSue

nicholas
Akeeba Staff
Manager

1. Not a problem. Both are valid PHP syntax. All of the following three code snippets are all valid PHP and compile to the exact same opcode:

<?php
$a = array(0 => 'foo');

$a = array(
0 => 'foo'
);

$a = array(
0
=>
'foo'
);

$a = [0 => 'foo']

$a = ['foo'];

2. This does not come from Admin Tools. This is what you entered during restoration, overriding what Kickstart suggested! There are two fields for the temporary directory and the logs directory. There's a checkbox to reset them to auto-detected values which DOES apply valid absolute filesystem paths. Instead of doing that, you entered a URL which is invalid in this context. We do not stop you from doing that because there are some rare, exotic cases where using a URL-like construct does make sense, e.g. people who need to use the PHP wrapper for SFTP to write to a common storage area in a containerized setup. This is why we can't do validation on these fields and rely on your judgement instead, with the occasional mishap like what happened in your case.

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!