Hi,
I am using phpMyFAQ version 2.8.2 on SQL 2008 R2 and IIS 7.5 (all on Windwos 2008 R2 machines) with PHP 5.5.2
When I create a faq it says "saved successfully" but I get an message saying "Automatic link verification result
No URLs compatible with link verifier feature found"
After that I cannot access the FAQ I created, I always get "Access denied". I also cannot edit the FAQ, same error, "Access denied".
I checked the faqdata table and can see that the faq has been saved. URL rewrite is not enabled in the config. I am currently using the the built-in authentication
scheme and am logged in as admin.
I switched on debugging in the bootstrap.php file and I got this:
phpMyFAQ warning [2]: Invalid argument supplied for foreach() in C:\inetpub\GITINFOS\phpmyfaq\inc\PMF\Faq.php on line 2578
phpMyFAQ recoverable error [4096]: Argument 3 passed to PMF_Category::addPermission() must be of the type array, null given, called in C:\inetpub\GITINFOS\phpmyfaq\admin\record.add.php on line 146 and defined in C:\inetpub\GITINFOS\phpmyfaq\inc\PMF\Category.php on line 1377
phpMyFAQ warning [2]: Invalid argument supplied for foreach() in C:\inetpub\GITINFOS\phpmyfaq\inc\PMF\Category.php on line 1384
phpMyFAQ user error [256]: Mail Class: is not a valid e-mail address! in C:\inetpub\GITINFOS\phpmyfaq\inc\PMF\Mail.php on line 283
I don't quite understand the message with the invalid email address, it is valid, I checked it.
Do you have ideas? I really want to get this up an running just looking at other people's faqs and the features I know this is the thing I need.
Thanks,
Regards,
Marco
Error "Access denied" when accessing FAQ
Moderator: Thorsten
Re: Error "Access denied" when accessing FAQ
Hello,
I have the same error (Access denied) using phpMyFaq 2.8.2 on Red Hat Enterprise Linux Server release 6.4, PostgreSQL 9.1.6.
Using debug mode the following error is displayed when trying to accessing to any faq :
phpMyFAQ warning [2]: pg_fetch_object() expects parameter 1 to be resource, boolean given in /var/www/html/faq/inc/PMF/DB/Pgsql.php on line 142
phpMyFAQ warning [2]: file_put_contents(./data/tracking09092013): failed to open stream: No such file or directory in /var/www/html/faq/inc/PMF/Session.php on line 144
By replacing on function getRecord in file inc/PMF/Faq.php the line 695:
GROUP BY fd.id",
by
GROUP BY fd.id,fd.lang",
no more error
Benjamin
I have the same error (Access denied) using phpMyFaq 2.8.2 on Red Hat Enterprise Linux Server release 6.4, PostgreSQL 9.1.6.
Using debug mode the following error is displayed when trying to accessing to any faq :
phpMyFAQ warning [2]: pg_fetch_object() expects parameter 1 to be resource, boolean given in /var/www/html/faq/inc/PMF/DB/Pgsql.php on line 142
phpMyFAQ warning [2]: file_put_contents(./data/tracking09092013): failed to open stream: No such file or directory in /var/www/html/faq/inc/PMF/Session.php on line 144
By replacing on function getRecord in file inc/PMF/Faq.php the line 695:
GROUP BY fd.id",
by
GROUP BY fd.id,fd.lang",
no more error
Benjamin
Re: Error "Access denied" when accessing FAQ
Hi Benjamin,
Thanks for your help.
I t ried this, but it did not work for me.
The rights are actually not being inserted into the rights table.
The SQL is not good (output from function addPermission($mode, $recordId, $ids) in FAQ.php)
INSERT INTO GroupITfaqdata_user (record_id, user_id) VALUES (19, -1)
my user_id is actually not -1, it is just 1.
Let's see what Thorsten says.
Thanks again.
Regards,
Marco
Thanks for your help.
I t ried this, but it did not work for me.
The rights are actually not being inserted into the rights table.
The SQL is not good (output from function addPermission($mode, $recordId, $ids) in FAQ.php)
INSERT INTO GroupITfaqdata_user (record_id, user_id) VALUES (19, -1)
my user_id is actually not -1, it is just 1.
Let's see what Thorsten says.
Thanks again.
Regards,
Marco
Re: Error "Access denied" when accessing FAQ
Hi,
I'll check it, please post a detailed bug report at https://github.com/thorsten/phpMyFAQ/issues
bye
Thorsten
I'll check it, please post a detailed bug report at https://github.com/thorsten/phpMyFAQ/issues
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Error "Access denied" when accessing FAQ
Hello Thornsten,
I am having the same issue where I get an Access Denied error when adding a new faq. It takes the subject but the body is not being accepted. Please let me know if there will be a fix since I am stuck with the upgrade from previous version.
Thanks
I am having the same issue where I get an Access Denied error when adding a new faq. It takes the subject but the body is not being accepted. Please let me know if there will be a fix since I am stuck with the upgrade from previous version.
Thanks