Error updating phpmyfaq 3.2.10 to 4.0.0

Please report bugs here!

Moderator: Thorsten

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

Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

I wanted to update our phpmyfaq 3.2.10 to version 4.0 but I encountered an error. On the update page, it tells me that a resource is missing:
1.PNG
Clicking on the link, an error on TwigWrapper.php:
2.PNG

What should I do to fix the problem?

Thank you in advance.

Best regards,
Virgile.
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15723
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,

do you have a proper .htaccess file? If the rewriting does not work, phpMyFAQ 4.0 doesn't work. The update script checks that, that's why you get this error.

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

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

The .htaccess file is the default for version 4.0 and I haven't changed anything in it.

bye,
Virgile.
Thorsten
Posts: 15723
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,

is the path for the RewriteBase in the file the correct one?

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

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

The path is identical to version 3.2.10: << RewriteBase / >>.

Our phpmyfaq is installed in the following path << /var/www/html/phpmyfaq >>

Virgile.
staniesk
Posts: 2
Joined: Thu May 23, 2024 8:15 pm

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by staniesk »

Hello, I have the same problem. I made the backup, and I still get this error. Could you tell me the correct way to make these backups please?


Heads up!
The requested resource was not found on the server. Please check your server configuration.
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15723
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,

is the path of the Rewrite base correct?

Code: Select all

    # the path to your phpMyFAQ installation
    RewriteBase /
This is the standard value if you run phpMyFAQ e.g. on https://faq.example.org/

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
staniesk
Posts: 2
Joined: Thu May 23, 2024 8:15 pm

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by staniesk »

Hello, thanks for replying.

I didn't make any changes, I did the update procedure deleting everything except the folders mentioned.

I uploaded the version 4 files and did the update.
the result was the attached screen.

Can you tell me where I can check if the Rewrite base is correct?

Thanks
Thorsten
Posts: 15723
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,

please open the .htaccess file in the root folder and check it

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

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

I've gone back to 3.2.10, because I couldn't find a solution to the problem.

Bye,
Virgile.
Thorsten
Posts: 15723
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,

how does your FAQ URL look like?

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

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

Our url looks like this: https://hostname_server/phpmyfaq/

bye,
Virgile.
Thorsten
Posts: 15723
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,

the path in the .htaccess then has to look like this:

Code: Select all

# the path to your phpMyFAQ installation
    RewriteBase /phpmyfaq/
AllowOverride All has to be set in the Apache configuration as well.

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

Re: Error updating phpmyfaq 3.2.10 to 4.0.0

Post by Virgile »

Hello,

By putting “RewriteBase /phpmyfaq/” in the .htaccess, we still have the same problem.

When we put the following configuration:

<Directory "/var/www/html">
AllowOverride all
</Directory>

in the apache config file, we get an error 500 :

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

bye,
Virgile.
Thorsten
Posts: 15723
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,

the AllowOverride all configuration has to be in the main Apache configuration, not in .htaccess.

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