Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pages_Access Support thread
#11
(2017-05-22, 20:00:41)Bigin Wrote: In the install description you write:
When the plugin first loads it will add the currently logged in user name to the 'admin' array.(This is why we refresh in the pages tab).

This will never happen and this code isn't executed:
PHP Code:
//initialise admin array on installation
if(empty($admin)){
 
$adminInit file_get_contents($PA_folder."groups.php");
 
$adminInitUD str_replace("\$admin = array()","\$admin = array('".$PA_current_user."')",$adminInit);
 
file_put_contents($PA_folder."groups.php",$adminInitUD);


Do you know why? - Because the $admin array isn't empty, you have forgotten to remove 'cobber' in the groups.php ;-)

That is why I believe, that nobody had ever succeeded to run your plugin properly and you can remove the five-star ratings which you have given yourself before with a clear conscience lol

currently I have the plugin running on three different machines, on windows and linux, on Firefox, chrome and on ie.

I'll take another look at the file, also I never gave myself five stars as far as I'm aware

Thanks for getting back to me, I'll try a fresh install and see if I can replicate any problems
Reply


Messages In This Thread
Pages_Access Support thread - by cobber - 2017-05-17, 18:31:37
RE: Pages_Access Support thread - by cobber - 2017-05-17, 19:26:40
RE: Pages_Access Support thread - by Hitcom - 2017-05-20, 12:43:22
RE: Pages_Access Support thread - by cobber - 2017-05-20, 17:17:37
RE: Pages_Access Support thread - by Carrara - 2017-05-21, 13:45:12
RE: Pages_Access Support thread - by Bigin - 2017-05-21, 20:38:12
RE: Pages_Access Support thread - by Bigin - 2017-05-21, 21:38:56
RE: Pages_Access Support thread - by cobber - 2017-05-22, 08:39:54
RE: Pages_Access Support thread - by Bigin - 2017-05-22, 19:12:27
RE: Pages_Access Support thread - by Bigin - 2017-05-22, 20:00:41
RE: Pages_Access Support thread - by cobber - 2017-05-22, 23:50:45
RE: Pages_Access Support thread - by Bigin - 2017-05-23, 00:29:30
RE: Pages_Access Support thread - by cobber - 2017-05-23, 03:06:45
RE: Pages_Access Support thread - by cobber - 2017-05-23, 00:16:53
RE: Pages_Access Support thread - by Bigin - 2017-05-23, 03:56:54
RE: Pages_Access Support thread - by Scorpio - 2019-01-12, 20:53:51



Users browsing this thread: 1 Guest(s)