vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [vBulletin 4] Simple way of including an external PHP file (https://vborg.vbsupport.ru/showthread.php?t=242454)

emits 12-06-2014 05:12 PM

Can someone help me ? When I run plugins everywhere are white pages...

kh99 12-06-2014 07:14 PM

Quote:

Originally Posted by emits (Post 2526022)
Can someone help me ? When I run plugins everywhere are white pages...

It's hard to say without seeing exactly what you're doing, but it sounds like there's an error in the plugin you're trying to run. Have you checked the error logs (if you have them available)?

emits 12-09-2014 08:26 AM

I have msg
Code:

Warning: require_once(/szatek/vb/nowosci.php): failed to open stream: No such file or directory in ..../includes/class_bootstrap.php(103) : eval()'d code on line 2
Fatal error: require_once(): Failed opening required '/szatek/vb/nowosci.php' (include_path='.:/usr/local/lib/php') in /home/p2y/domains/p2y.eu/public_html/szatek/vb/includes/class_bootstrap.php(103) : eval()'d code on line 2


Crimm 12-10-2014 12:23 PM

Quote:

Originally Posted by emits (Post 2526417)
I have msg
Code:

Warning: require_once(/szatek/vb/nowosci.php): failed to open stream: No such file or directory in ..../includes/class_bootstrap.php(103) : eval()'d code on line 2
Fatal error: require_once(): Failed opening required '/szatek/vb/nowosci.php' (include_path='.:/usr/local/lib/php') in /home/p2y/domains/p2y.eu/public_html/szatek/vb/includes/class_bootstrap.php(103) : eval()'d code on line 2


It appears this file is missing or doesn't have the correct permissions: /szatek/vb/nowosci.php

Thr33 03-19-2017 09:41 AM

Ive tried all the suggestions in all 8 pages and im still not getting an output at all, even when using and ECHO message. Any suggestions?

Code:

Product: vBulletin
Hook Location: global_bootstrap_init_start
Title: Shoucast Stats
Execution Order: 1

PHP Code:

ob_start();
  require_once(
'http://literecords.com/user/s/stats.php');
  
$scstats ob_get_contents();
  
ob_end_clean();
echo 
"PLUGIN WORKS: "
vB_Template::preRegister('FORUMHOME',array('scstats' => $scstats)); 

In template: FORUMHOME
Code:

        {vb:raw header}
        {vb:raw navbar}
        {vb:raw scstats}
<div>

The file exists and shows output but no via the plugin.

Mattwhf 06-18-2017 07:57 AM

This way can affect to the loading of web page?


All times are GMT. The time now is 02:13 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01957 seconds
  • Memory Usage 1,730KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete