Support

Site Restoration

#38166 Error: Call to undefined method Joomla\CMS\Document\RawDocument

Posted in ‘Site restoration’
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

PHP version
7.4
CMS Type
Joomla!
CMS Version
3.10.11
Backup Tool Version
8.2.3
Kickstart version
7.1.2

Latest post by SouthernWeb on Monday, 12 December 2022 10:25 CST

SouthernWeb

Hi,

I am looking to place a copy of a website in a sub-folder to do all the testing/debugging/updates for joomla 4. I can't get Kickstart going. Here's the error:

Error: Call to undefined method Joomla\CMS\Document\RawDocument::isHtml5(): View not found [name, type, prefix]: category, php, contentView

I've tried renaming the php file, but it yielded the same error.

The sub-folder contains only the kickstart.php file and the most recent backup file.

Thanks!

nicholas
Akeeba Staff
Manager

This error comes from the error.php file of your template; it is not compatible with Joomla 3.7 or later.

Your main site's templates' error page is called because you are trying to run Kickstart in a subdirectory of your site. As I have explained and documented, this will cause problems because .htaccess files cascade through the filesystem.

As I have explained in https://www.akeeba.com/documentation/akeeba-backup-joomla/restoring-backups.html#general-guidelines:


 

Do not restore in a subdirectory of your main site. For example, if your site's root is in public_html do not restore to public_html/dev. The reason is that the .htaccess files, which tell Apache (your web server) how to server your site, cascade. That is, Apache will read all .htaccess files in all folders leading to the one hosting your site's index.php file. This will cause problems with the restored site which you will experience as 404, 403 and 500 error messages or blank pages. These have nothing to do with our software and / or the restoration. It's how your web server works. Use a subdomain instead.

If you are restoring on a subdomain, make sure that the subdomain's root directory is NOT a subdirectory of your main site. This is the same as the previous paragraph, really. Most hosting control panel software default to using a subdirectory of your site's root when creating a subdomain. For example, if your site is www.example.com and its root is public_html if you create the subdomain dev.example.com your hosting control panel will put its root in public_html/dev. Therefore you will have the problem we described above. In this case ask your host what is the best way to create a root folder for the subdomain next to public_html, not inside it.


So, create a subdomain for your testing and make sure that its web root is outside and next to your main site's public root. If you do not understand what that means or how to do it, please do ask your host. They can tell you how to do that with their site management control panel.

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!

SouthernWeb

Thank you.

I haven't used kickstart in a while. I could have sworn I had used a subfolder before. Maybe the subfolder was for a rebuild with a fresh copy of Joomla.
Getting older and the memory isn't... Sorry, was I saying something?

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!