Page 1 of 1

Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Fri Oct 06, 2023 3:07 pm
by clemenz
I upgraded from 2.9.9 to 2.9.13, which worked.
But then I can't get any further.
If I have 3.0.0. or 3.0.1, the entire page will no longer be accessed.
Neither does /setup/update.php

What do I have to do to get the current version?
I'm thinking first on version 3.x and then on the current 3.2.x, right?

But where did I get the error?

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sat Oct 07, 2023 1:43 pm
by Thorsten
Hi,

you have to update from 2.9.13 to 3.1 first.

Which error do you get? Did you update PHP to at least PHP 7.4?

bye
Thorsten

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sat Oct 07, 2023 3:14 pm
by clemenz
Yes PHP is 7.4.X
I will try to upgrade from 2.9.13 to 3.1.
Thank you in advance.

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sat Oct 07, 2023 3:55 pm
by clemenz
Unfortunately it didn't work.
This message comes.




Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sat Oct 07, 2023 4:32 pm
by Thorsten
Hi,

when does this message occur?

bye
Thorsten

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 4:25 am
by clemenz
I transferred all files from version 3.1.0 and overwrote all from 2.9.13.

Then I wanted to start the setup.
/setup/update.php

And then the message came on a white browser window.

When I access the homepage itself I get the same message:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 7:14 am
by Thorsten
Hi,

please enable the debug mode in src/Bootstrap.php to get more errors.

Thanks in advance!

bye
Thorsten

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 7:39 am
by clemenz
So it's already activated, that's true, right?
Then I didn't have to change anything.


// Debug mode:
// - false debug mode disabled
// - true debug mode enabled
const DEBUG = true;



This comes via the error log of the web server.


[Sun Oct 08 08:38:34.316945 2023] [ssl:warn] [pid 2227:tid 140084853675904] AH01909: download.MeineDomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 08 08:38:35.567002 2023] [core:alert] [pid 1527643:tid 140084368103104] [client 2003:e6:471e:0:e095:fb3e:fa98:95be:52865] /var/www/pweb5/htdocs/faq-online-fragesystem/.htaccess: Option FollowSymlinks not allowed here
[Sun Oct 08 08:38:35.699204 2023] [core:alert] [pid 1527643:tid 140084351317696] [client 2003:e6:471e:0:e095:fb3e:fa98:95be:52866] /var/www/pweb5/htdocs/faq-online-fragesystem/.htaccess: Option FollowSymlinks not allowed here, referer: http://faq.MeineDomain.com/

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 8:03 am
by Thorsten
Hi,

the

Code: Select all

+FollowSymlinks
isn't allowed on your machine, that's strange, because it was there in 2.9 as well.

https://github.com/thorsten/phpMyFAQ/bl ... access#L17

bye
Thorsten

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 8:10 am
by clemenz
OK, and how can I allow this?


This is already in my htaccess.


# @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
# @link https://www.phpmyfaq.de
# @since 2004-11-13

# always follow the symlinks
Options +FollowSymlinks -MultiViews -Indexes

# X-Frame-Options to prevent clickjacking
Header always append X-Frame-Options SAMEORIGIN

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 8:17 am
by clemenz
This file is in version 2.9.13
_.htaccess

This is in version 3.1
.htaccess

So without the dash “_”.

If I now change the 3.1 from ".htaccess" to "_.htaccess", then this message comes up:
----------------------------

Uncaught exception: 'Error'

Message: 'Call to a member function fetch_assoc() on bool'

Stack trace:

#0 /var/www/pweb5/htdocs/faq-online-fragesystem/src/phpMyFAQ/Category.php(397): phpMyFAQ\Database\Mysqli->fetchArray(false)
#1 /var/www/pweb5/htdocs/faq-online-fragesystem/startpage.php(41): phpMyFAQ\Category->getHomeCategories()
#2 /var/www/pweb5/htdocs/faq-online-fragesystem/index.php(742): require('/var/www/pweb5/...')
#3 {main}
Thrown in '/var/www/pweb5/htdocs/faq-online-fragesystem/src/phpMyFAQ/Database/Mysqli.php' on line 132

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 8:31 am
by Thorsten
Hi,

now you have to open the update with your browser and run the update.

bye
Thorsten

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 1:18 pm
by clemenz
Yes, thanks, that was it, the wrong name for the htaccess file.
I now have version 3.1 and have also installed version 3.2.1. Switched to PHP 8.1 and installed an update.
Thank you for the great support.

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Posted: Sun Oct 08, 2023 1:46 pm
by Thorsten
Awesome!

bye
Thorsten