phpMyFAQ Verification API is not available.

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

phpMyFAQ Verification API is not available.

Post by iconicperformances »

When I updated to the recent stable version of the application I now get the following message on my administrator Dashboard.
How can I correct this so it functions properly?
Online version check
phpMyFAQ Version API is not available.
AND
Online verification check
phpMyFAQ Verification API is not available.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

can you access this: https://api.phpmyfaq.de/versions

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

I clicked on the link and it shows me it. However on the Dashboard it still does not display the correct information. I have updated to the latest stable version, however I still the same thing on my dashboard. Is there a fix for this?

Image
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

this is strange, are you in a company intranet?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

Nope, I am not. This is my company's VPS server with Godaddy.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

please try to enable the debug mode in src/Bootstrap.php and try it again to see proper error messages.

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

when I went to the location and changed false to true in the const DEBUG = false; line of line 28 I received the following error when I logged into my phpMyFAQ
phpMyFAQ Fatal error
Uncaught exception: 'ErrorException'

Message: 'touch(): Unable to create file /phpmyFAQ/KB/data/tracking04072023 because No such file or directory'

Stack trace:

#0 [internal function]: phpMyFAQ\Core\Error::errorHandler(2, 'touch(): Unable...', '/home/iconicpro...', 336, Array)
#1 /home/phpmyFAQ/KB/src/phpMyFAQ/Session.php(336): touch('/home/iconicpro...')
#2 /home /phpmyFAQ/KB/src/phpMyFAQ/Session.php(234): phpMyFAQ\Session->userTracking('old_session', '0;old_session;3...')
#3 /home/phpmyFAQ/KB/index.php(251): phpMyFAQ\Session->checkSessionId(31703, '119.18.1.144')
#4 {main}
Thrown in '/phpmyFAQ/KB/src/phpMyFAQ/Session.php' on line 336
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

is it possible the folder data/ is not writable?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

How do I check?
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

the folder data/ in the phpMyFAQ directory has to be writable.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

The folder /src has permissions set to 755
and the file you mentioned has permissions set to 644.

Does this mean they are writeable. I do know how to change permissions, however I am not sure what each number refers to.

Also by making the folder writeable does this create security loopholes to be attached by hackers on the folder, file or my server?
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

644 means, only the file owner is allowed to write. So the web server needs to be the owner. You can try 666.

If you don't want to change the file, please disable the user tracking in the admin configuration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

I am happy to change it to 666.
Can you please though answer the following question before I do this.
making the folder writeable does this create security loopholes to be attached by hackers on the folder, file or my server?
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ Verification API is not available.

Post by Thorsten »

Hi,

if it's only writable for the server all is good.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
iconicperformances
Posts: 55
Joined: Fri Sep 15, 2017 8:49 am

Re: phpMyFAQ Verification API is not available.

Post by iconicperformances »

I don't understand what you mean. If I change the folder to 666, does this mean that it is only writable to the server?

These codes don't make sense to me. So if you can reassure me that changing the folder to 666 won't create security loop holes than I am happy to do this. so If I change the folder to 666, does this mean that it is only writable to the server and won't create a security loop hole?
Post Reply