CMS Error in TYPO3 after restoring backup - typo3

I have restored a backup from another host and I get the following error on the dashboard:
Oops, an error occurred!
An exception occurred while executing 'SELECT uid, title FROM sys_language WHERE sys_language.hidden = 0 ORDER BY sorting ASC': Unknown column 'sorting' in 'order clause'
I am new to TYPO3 so unsure where to start with this error. I have searched but not found any relevant answers.
Thanks in advance,
gtg

The part [...] Unknown column 'sorting' in 'order clause' of the error message indicates that a column is missing in database table sys_language. As sys_language is a system table, I'd first check if the database schema is up-to-date and correct. TYPO3 provides this feature in the "Install Tool".
In the backend of TYPO3 v7/v8, go to SYSTEM → Install and open the "Database analyzer" in section "Important actions".
In the backend of TYPO3 v9, go to ADMIN TOOLS → Maintenance and execute "Analyze Database Structure".
It is also important to make sure that you are using the same TYPO3 core version as on the other host. Assuming you are using TYPO3 v8 (e.g. version 8.7.24) on the original instance and you restore the site on a different server, you should use the same TYPO3 version (or at least the latest version of the 8.7.x branch).

Related

TYPO3 Upgrade Psr Problem vom 10.x to 11.5.8,

I tried to upgrade from 10.x to 11.5.8 and nothing was working anymore. If I try to open the url I recieve the following error message:
Fatal error: Declaration of TYPO3\CMS\Extbase\Mvc\Controller\AbstractController::processRequest(TYPO3\CMS\Extbase\Mvc\RequestInterface $request, TYPO3\CMS\Extbase\Mvc\ResponseInterface $response) must be compatible with TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface::processRequest(TYPO3\CMS\Extbase\Mvc\RequestInterface $request): Psr\Http\Message\ResponseInterface in C:\inetpub\wwwroot\typo3\sysext\extbase\Classes\Mvc\Controller\AbstractController.php on line 243
So the next step was to disable all my extensions.
If I try to open the backend, I recieve the same message as above.
The next step was to use the Install Tool, which was working. But if I try to use some functions like "Upgrade Wizard", "Analyze Database Structure", "
Remove Temporary Assets", ....
But the sys_log and the log files under typo3temp are empty!
And also the firefox degugger is not showing any information.
PHP 7.4.15, no composer installation and chaches all deleted!
What should I do next?
The first error message says that there are Extbase extensions which are not compatible with v11. See https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92502-MakeExtbaseHandlePSR7ResponsesOnly.html
For the second error I'd recommend to look into the dev console of your browser. There you might see more information about the error when there is nothing in the logs. (Maybe there is an error when writing log?)
The mentioned file "AbstractController.php" exists only in version 10 and was removed afterwards.
So TYPO3 is using some old files, probably from the file-cache.
You wrote that you use an installation without composer-setup. Those installations have the file-cache saved in typo3temp/var/cache. This folder can be deleted completely and will be rebuilt automatically.
Afterwards TYPO3 version 11 should run and the error-message should never be shown again.
Due to my experiences with updating TYPO3 to a new mayor release, i did the following steps.
Renamed fileadmin dir
Deleted all TYPO3 dirs
Installed the new version of TYPO3
Start TYPO3 from scratch with an new database (use the ID and passwort from the final database, use the right sitename)
Rename the fileadmin dir back to fileadmin
Go into LocalConfiguration.php and switch under DB to the original database
(Maybe) enable 'debug' => true, for BE and FE and set 'displayErrors' => 1, under SYS
Try to start the BE, if failed go to the Install tool.
Start Upgrade Wizard under Upgrade
In the Install tool start the Analyze Database Structure, but be carefull. that you dont't delete any database of your extensions, which not installed yet!
Now the BE should work now and you can upgrade your extensions!
Good Look.

Directory Status - Directory / should be a directory, but is of type link

I'm trying to update TYPO3 (current version: 9.5.20) to the most recent version, but I'm currently stuck at the following error message when using the 'Update Core' functionality to update to 9.5.32:
Automatic TYPO3 CMS core update not possible: Folder structure has errors or warnings.
I went to 'Environment' -> 'Directory Status' and saw the following error:
Directory / should be a directory, but is of type link
How should I go about fixing this error? I saw a handful of bug reports on the TYPO3 bugtracker but no clear way to fix this issue. Perhaps there is an option to temporarily disable the directory status checks?
The intention is obviously to update to the most recent TYPO3 version, but I'm starting with 9.5.32 as a first step.
Below are the errors I get when trying to update to v9.5.32:
Thanks in advance for the help! :)

Some Q2A plugins are not compatible with PhP 7 and MySQL 5.7

I updated PHP 5.6 to 7 and MySQL 5.5 to 5.7.
Everything was fine in the older versions, however since I updated the server some plugins such as: Custom 404 page, gregorian2jalali face problems. Some pages goes blank and the Inspect Element, Console section nothing shows. up. For example, if I activate gregorian2jalali plugin, User Profie page doesn't show up.
Also in the Custom 404 page plugin, the following error comes up in 404 pages:
A Question2Answer database query failed when generating this page. A full description of the failure is available in the web server's error log file.
There was a related question for an earlier problem here: When adding page link, database query error occurs.
In the Apache Error Log, a message similar to this message comes up:
PHP Question2Answer MySQL query error 1146: Table 'qa.qa_options' doesn't exist - Query: (SELECT 'options' AS selectkey, title, content FROM qa_options) UNION ALL (SELECT 'time', 'db_time', UNIX_TIMESTAMP(NOW()))
Also, there was an earlier problem here at this question: is there a way to manually create the database tables ?
Now that the plugin is not updated, how I can fix this problem ?
Thanks
Q2A version: 1.7.4
There are two possibilities I can think of:
You are using a different table prefix (e.g. abc_ instead of qa_) in your qa-config.php file, and a plugin is putting qa_options in their SQL queries instead of ^options as they should (which automatically adds the correct prefix).
Or, you are using the unstable 1.8 version from GitHub which currently has a few issues regarding plugins. If so, make sure you're using the stable 1.7.4 version that you get from the main Q2A site.

typo3 4.7 recreate database

Is it possible to recreate the database from scratch on a typo3 4.7.10?
After a migration the database got lost and only the files are available. My job now is to create a new database for it.
Do I have to install a typo3 4.7 and then use this database or is it somehow possible to recreate the database with the current installation?
You can create an empty db via phpMyAdmin, for example.
Then go to Install Tool -> Basic Configuration and enter your db credentials there. After that you can switch to DB analyzer and click on "Compare" button.
TYPO3 will then prompt all the SQL queries it will perform, which in your case will be "CREATE TABLE ...". Just agree with that and your empty TYPO3 db will be created.

The page is not configured! [type= 0][]

I've migrated from typo3 4.1 to 4.5 LTS now I got this error.
The page is not configured! [type= 0][]
I've checked DB analyser and fixed the table issues any ideas. Please revert
Apparently TYPO3 can't find TypoScript use Web > Template tool and check if record exists, also if it includes TS from external files, make sure the files exists.