Error updating phpmyfaq 3.2.10 to 4.0.0

Please report bugs here!

Moderator: Thorsten

Virgile
Posts: 35
Joined: Thu Jul 25, 2024 7:33 am

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

The AllowOverride configuration was not put in .htaccess but in the /etc/apache2/apache2.conf file as follows:

<Directory /var/www/html/phpmyfaq/>
AllowOverride All
</Directory>

I still get error 500:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost 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.

Looking in the logs, we have the following error following the addition of AllowOverride All in apache2:

/var/www/html/phpmyfaq/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

Bye,
Virgile
Virgile
Posts: 35
Joined: Thu Jul 25, 2024 7:33 am

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

For error 500, I corrected it by activating headers :

a2enmod headers
systemctl restart apache2

But the problem is still there.

Virgile.
Virgile
Posts: 35
Joined: Thu Jul 25, 2024 7:33 am

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

For your information, the problem is also present in version 4.0.1.

I also tested the modifications you indicated, but the same problem occurred.

Virgile.
Thorsten
Posts: 15661
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Thorsten »

Hi,

it's not working even after you adjusted the RebaseBase path in the .htaccess file?

What do you get if you open https://hostname_server/phpmyfaq/api/v3.0/version

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Virgile
Posts: 35
Joined: Thu Jul 25, 2024 7:33 am

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hi,

The RewriteBase in .htaccess has not changed anything.

The following link https://hostname_server/phpmyfaq/api/v3.0/version does not exist:

Not Found
The requested URL was not found on this server.

Bye,
Virgile.
Thorsten
Posts: 15661
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Thorsten »

Hi,

if

Code: Select all

https://hostname_server/phpmyfaq/api/v3.0/version
does not work, the rewriting does not work at all.

It looks like you have to debug the Apache log: https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Virgile
Posts: 35
Joined: Thu Jul 25, 2024 7:33 am

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

I finally found the problem!

While searching, I saw that Rewrite was not activated. I ran the commands:
a2enmod rewrite
systemctl restart apache2.service

and ran the update script.

However, I have a problem with the nav bar of the site, which is not readable :
Capture.PNG
Bye,
Virgile.
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15661
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Thorsten »

Hi Virgile,

awesome news!

About the navigation, it looks like some caching as it seems the logo is still PNG and it should be a SVG with 4.0.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Virgile
Posts: 35
Joined: Thu Jul 25, 2024 7:33 am

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hi,

You're right!

Thx for you help.

Virgile.
Thorsten
Posts: 15661
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Thorsten »

Hi,

so now it's working?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply