vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP Call 'No Permissions Page' (https://vborg.vbsupport.ru/showthread.php?t=323727)

JamesStPattrick 10-30-2016 10:47 PM

PHP Call 'No Permissions Page'
 
Hello,

I'm coding a plugin, does anyone know how I can call the vBulletin 'No Permission Page'?

Thanks!

--------------- Added [DATE]1477871411[/DATE] at [TIME]1477871411[/TIME] ---------------

I've tried calling: 'print_no_permission();' but then I get this error:
Quote:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\xampp\htdocs\includes\functions.php on line 2890
Any idea?

--------------- Added [DATE]1477871762[/DATE] at [TIME]1477871762[/TIME] ---------------

Nevermind, issue has been fixed.

For those who want the solution, make your own php file that calls the print_no_permission(); and call that file from plugin :)

Paul M 10-30-2016 10:59 PM

There is no reason at all to do that, just call print_no_permission() in the plugin, it works just fine (a lot of my vB3 plugins have this).

Dragonsys 10-31-2016 12:46 PM

Quote:

Originally Posted by JamesStPattrick (Post 2577489)
I've tried calling: 'print_no_permission();' but then I get this error:


Any idea?

Your PHP Script is using too much memory (128MB+). You can either increase the memory allowed by using a php.ini file (if your host allows it, but I would not recommend this method since you are consuming 128MB) or figure out why your script uses that much memory and adjust it.

JamesStPattrick 11-04-2016 07:29 PM

Quote:

Originally Posted by Paul M (Post 2577492)
There is no reason at all to do that, just call print_no_permission() in the plugin, it works just fine (a lot of my vB3 plugins have this).

I tried it but it generates that error.

Quote:

Originally Posted by Dragonsys (Post 2577505)
Your PHP Script is using too much memory (128MB+). You can either increase the memory allowed by using a php.ini file (if your host allows it, but I would not recommend this method since you are consuming 128MB) or figure out why your script uses that much memory and adjust it.

I see not how it's possible that this issue occurs due to memory.
I even assigned 16GB now and still same issue.

I'll just stay with my solution.


All times are GMT. The time now is 10:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00933 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete