Uncaught Error: Class "phpMyFAQ\Helper" not found

Please report bugs here!

Moderator: Thorsten

Post Reply
kawabata
Posts: 3
Joined: Mon Jun 12, 2023 1:48 am

Uncaught Error: Class "phpMyFAQ\Helper" not found

Post by kawabata »

phpMyFAQ 2.9.9 to 3.1.12 updated to.

After updating
/src/phpMyFAQ/Helper
When executing the program under the php command, the following message was displayed.

# php FaqHelper.php

Content-type: text/html; charset=UTF-8

<br />
<b>Fatal error</b>: Uncaught Error: Class &quot;phpMyFAQ\Helper&quot; not found in /***/**/src/phpMyFAQ/Helper/FaqHelper.php:36
Stack trace:
#0 {main}
thrown in <b>/***/**/src/phpMyFAQ/Helper/FaqHelper.php</b> on line <b>36</b><br />

Please let me know what could be the cause.

version information
OS:CentOS7
PHP:8.0
Apache:2.4
MySQL:5.7
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Uncaught Error: Class &quot;phpMyFAQ\Helper&quot; not found

Post by Thorsten »

Hi,

why do you call that file directly?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kawabata
Posts: 3
Joined: Mon Jun 12, 2023 1:48 am

Re: Uncaught Error: Class &quot;phpMyFAQ\Helper&quot; not found

Post by kawabata »

Thorsten wrote: Mon Jun 12, 2023 12:41 pm Hi,

why do you call that file directly?

bye
Thorsten
Thank you for your reply.

Currently using phpmyfaq,I decided to update this time.

After the update, there was a problem with the site display, and after investigating various things,
When I ran it with the php command, an error was displayed, so I contacted you.
Besides FaqHelper.php, all other files in /src/phpMyFAQ/Helper,I get a similar error when I run the php command.

If you have installed phpMyFAQ 3.1.12 on another server,php command doesn't give any error.

I'm looking for what causes the error to appear and how to fix it.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Uncaught Error: Class &quot;phpMyFAQ\Helper&quot; not found

Post by Thorsten »

Hi,

you can't fix that error because it's not intented to call that file directly.

What errors do you get on your installation?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kawabata
Posts: 3
Joined: Mon Jun 12, 2023 1:48 am

Re: Uncaught Error: Class &quot;phpMyFAQ\Helper&quot; not found

Post by kawabata »

Thorsten wrote: Sun Jun 18, 2023 9:07 am Hi,

you can't fix that error because it's not intented to call that file directly.

What errors do you get on your installation?

bye
Thorsten
Thank you for your reply.
No errors were found when the update was completed.
Is there a log that can confirm that the update has been implemented and the installation has been completed?
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Uncaught Error: Class &quot;phpMyFAQ\Helper&quot; not found

Post by Thorsten »

Hi,

if you don't see errors the update went fine.

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