In this board you can talk about general questions about phpMyFAQ
Moderator: Thorsten
iconicperformances
Posts: 92 Joined: Fri Sep 15, 2017 8:49 am
Post
by iconicperformances » Sat Jun 24, 2023 1:36 am
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.
iconicperformances
Posts: 92 Joined: Fri Sep 15, 2017 8:49 am
Post
by iconicperformances » Sun Jun 25, 2023 11:43 pm
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?
Thorsten
Posts: 15661 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Mon Jun 26, 2023 6:10 am
Hi,
this is strange, are you in a company intranet?
bye
Thorsten
Thorsten
Posts: 15661 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Fri Jun 30, 2023 12:48 pm
Hi,
please try to enable the debug mode in src/Bootstrap.php and try it again to see proper error messages.
Thanks!
bye
Thorsten
iconicperformances
Posts: 92 Joined: Fri Sep 15, 2017 8:49 am
Post
by iconicperformances » Tue Jul 04, 2023 1:28 pm
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: 15661 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Wed Jul 05, 2023 6:29 am
Hi,
is it possible the folder data/ is not writable?
bye
Thorsten
Thorsten
Posts: 15661 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Thu Jul 06, 2023 6:36 am
Hi,
the folder data/ in the phpMyFAQ directory has to be writable.
bye
Thorsten
iconicperformances
Posts: 92 Joined: Fri Sep 15, 2017 8:49 am
Post
by iconicperformances » Thu Jul 06, 2023 10:03 am
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: 15661 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Thu Jul 06, 2023 4:19 pm
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
iconicperformances
Posts: 92 Joined: Fri Sep 15, 2017 8:49 am
Post
by iconicperformances » Fri Jul 07, 2023 12:57 am
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: 15661 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Fri Jul 07, 2023 2:42 pm
Hi,
if it's only writable for the server all is good.
bye
Thorsten
iconicperformances
Posts: 92 Joined: Fri Sep 15, 2017 8:49 am
Post
by iconicperformances » Mon Jul 10, 2023 6:00 am
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?