migrating TYPO3 6.2.31 to TYPO3 7.6.23 - typo3

When I try to migrate my TYPO3 6.2.31 to 7.6.23 I've got some problems.
Especially the page tree is missing so I got this error
The requested resource "%2Fmain" was not found
I've tried this way to migrate:
1.) Copy the whole page
2.) Changing the symlinks to the new sources
3.) Starting the migration wizard in install tool
And now When I want to access the backend I got the above mentioned error.
what can I do?
thanks.
When I call url.de/typo3 the follwing url is called:
index.php?route=%252Fmain&token=XXX
The correct one should be
index.php?route=%2Fmain&token=XXX
What could be the problem in the url?

Please follow below steps.
Download typo3 7 LTS latest source and create symlink.
Add your typo3conf, uploads and fileadmin folder
Open install tools and clear both cache php and typo3.
Compare currentdatabse specification and perform all steps.
Go to upgrade wizard and complete all needed steps
Clear cache and remove typo3temp file and open BE

as mentioned here: Need to allow encoded slashes on Apache
Issue 1: Apache believes that's an invalid url
Solution: AllowEncodedSlashes On in httpd.conf
Issue 2: Apache decodes the encoded slashes
Solution: AllowEncodedSlashes NoDecode in httpd.conf (Requires Apache 2.3.12+)
Issue 3: mod_proxy attempts to re-encode (double encode) the URL changing %2F to
%252F (eg. /example/http:%252F%252Fwww.someurl.com/)
Solution: In httpd.conf use the ProxyPass keyword nocanon to pass the raw URL thru the proxy.
ProxyPass http://anotherserver:8080/example/ nocanon
httpd.conf file:
AllowEncodedSlashes NoDecode
<Location /example/>
ProxyPass http://anotherserver:8080/example/ nocanon
</Location>

Related

TYPO3 V11 installation or configuration

I have have recovered a project in TYPO3 v11.3.0
My database is imported without error.
I access the installation tool :)
I have access to the typo3 login / password, but if I validate the form, I get the message "Not Found, The requested URL was not found on this server."
On the internet, I found the issue https://forge.typo3.org/issues/94054
I tried the following fix: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/11.0/Breaking-93048-BackendURLRewrites.html
but suddenly I no longer have access to either the instal tool or the login form, I simply have a TYPO3 error:
Page not found The page did not exist or was inaccessible. Reason: The
requested page does not exist
Any ideas?
There is an example .htaccess file in the core that you can copy:
# cd into your web root
cd yourWebRoot/
# make a backup of your current .htaccess
mv .htaccess _.htaccess_old
# get a example .htaccess
cp typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess .htaccess
TYPO3 11 should work with that, now you can copy changes that you made in your old .htaccess into the new one.

Can't login to the backend of a fresh TYPO3 install

Here is what I did:
Downloaded zip TYPO3 11.3.0 from https://get.typo3.org/version/11
Unzip into /subfolder
touch FIRST_INSTALL
Followed instructions of the setup wizard with new database
Try to login via /subfolder/typo3/ and enter credentials
/subfolder/typo3/login?loginProvider=... leads to a 404
What I already checked:
typo3temp/var/log/typo3_[...].log is empty
MAMP logs don't show anything suspicious
Install Tool Environment Status shows a weird error:
http://localhost:8888/subfolder/typo3temp/assets/e35bd633.tmp/e77fab4e.php.wrong: unexpected content PHP content
Install Tool Directory Status is all green
Original .htaccess file exists
Created typo3conf/sites/mysite/config.yaml by copying from an existing (working) project, TYPO3 10
Of course, before I created the site configuration YAML, /subfolder/typo3/login?loginProvider=... was leading to a "no site config" error.
Now, it feels like there is a problem with the .htaccess, but I can't pinpoint where.
Running Apache / PHP 7.4.12
You have to make sure to use the proper .htaccess configuration for CMS 11, so you can't just resue the one provided with CMS 10.
Have a look at this documentation of the related breaking change in TYPO3 CMS 11
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-93048-BackendURLRewrites.html

Typo3 v9.5 BE login not working after fresh installation

I have installed fresh TYPO3 v9.5 in my local server. After complete installation i open the backed and then try to login with my username and password but every time i getting error. see below screenshot.
I try to search many solution for this but not getting success. I know about Argon2i password Hashing problems for new fresh Typo3 v9 installation. So, i select another password Hashing method via INSTALL TOOL. But still i am getting same error. Sometime i clear whole cache via install tool and open the back end, but when i enter my username and password will getting same error.
Someone help please.
This problem is associate with Apache. In Windows case you have to include in httpd.conf next lines:
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>
Last thing you have to take into account with installation in Windows beacuse you should configure ssl in this system, is more easy in a Unix distribution based.
You could follow the tutorial in https://www.pagemachine.de/blog/tutorial-update-typo3-9lts-testsystem-windows-installieren/?cn-reloaded=1 , the only thing is this written in german.
I uncomment below line in httpd.conf file.
Include conf/extra/httpd-mpm.conf
And added below code in httpd-mpm.conf file and it's work fine for me.
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>

Magento 2 moving Apache docroot to pub directory

I've recently performed a Magento security scan and it recommended I move the root of my Magento 2 installation to the pub directory.
I've followed the instructions here but I've had no success. The site fails to find the images and merged CSS files. I have double checked that the CSS files and images exist in their respective directories in pub/static.
My Apache configuration:
DocumentRoot /var/www/html/magento2/pub
ServerName www.somedomainorother.co.uk
ServerAlias somedomainorother.co.uk
<Directory "/var/www/html/magento2/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
I am using Apache 2.4, Centos 7.3.
Has anybody run across a problem like this before and how did you fix it?
I had exactly the same issue and the root cause I found that Magento was still looking for the static resources under [site_url]/pub/static or (if static versioning is enabled):
[site_url]/version[NNNNNN]/pub/static
While they should have been requested according to the new root
[site_url]/version[NNNNNN]/static
I had to check the static and media urls, in core_config_data I found [site_url]/pub/media and [site_url]/pub/static as values for base_media_url, base_static_url for secure and unsecure. I simply removed these config records from core_config_data and left the application to retrieve them correctly by default.
I assume you have tried the usual trick of:
php bin/magento setup:static-content:deploy
You may need to add an '-f' after depending on which mode you are in. Also, if you are using a language different to 'en_US' then you woul dneed to add that at the end. I have to do this:
php bin/magento setup:static-content:deploy -f en_GB
This has helped me get out of those CSS and image screw ups.
Otherwise I would look at maybe it being a permissions issue?

base url dont work on typo3 6.2

i have problem after installing the bootstrap package on my localhost wamp
http://localhost/fileadmin/bsdist/lib/bootstrap/3.2/css/bootstrap.min.css?1419681956
i have added config.baseURL
baseURL = http://localhost/typo3/
/typo3/ is the admin panel you can't set that URL as baseURL. I don't you what happen but i think he will remove that part.
So set your Domain as baseURL and don't forget the / at the end.
baseURL = http://localhost/
don't forget to clear your complete cache to load the changes.
As #Stony already pointed you cannot use .../typo3/ as baseURL because this is location specific for TYPO3's backend.
On the other hand working with TYPO3 in subfolders always rises some problems as you need to change several configs (i.e. in .htaccess for url rewriting) to make it working correctly. And as I last tested clean installation in subfolder doesn't work as expected out-of-the-box.
Fortunately there's simple and elegant solution - creating custom domain locally.
Just in your hosts file add line like
127.0.0.1 myproject.loc
Add a vhost for this myproject.loc in your Apache config
Restart Apache and flush the DNS cache
In such case your project will be available locally at url http://myproject.loc/ so you can use it as well as your baseURL
If the typo3 installation is not in the domain's root directory, you must modify the RewriteBase in the default htaccess:
RewriteBase /<project_directory>
In your case:
RewriteBase /typo3