Announcement

Collapse
No announcement yet.

Blank page when attempting to execute php scripts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Floris
    replied
    Originally posted by opteek
    The same thing.


    No, 3.5.2
    vBulletin 3.0.0 Release Candidate 2

    That's why then. You're using 3.0 code with 3.5

    Leave a comment:


  • Floris
    replied
    We simply can't provide support for custom stuff. Revert the original vBulletin files, or even better. Upload the 3.5.2 files and run upgrade.php.

    vBulletin should function properly again.

    For support with those scripts, contact the support guys from whoever wrote it.

    Leave a comment:


  • opteek
    replied
    Originally posted by ATI4EVER
    So wait...this happens when executing stuff inside your Admincp?

    What happen in the normal forum index?
    The same thing.


    Originally posted by ATI4EVER
    By the way you are running 3.0.0 RC2?!?!?!?!??
    No, 3.5.2

    Leave a comment:


  • Mr_Butter
    replied
    So wait...this happens when executing stuff inside your Admincp?

    What happen in the normal forum index?

    (Also remove your license number :P )

    By the way you are running 3.0.0 RC2?!?!?!?!??

    Leave a comment:


  • opteek
    started a topic Blank page when attempting to execute php scripts

    Blank page when attempting to execute php scripts

    When I upload php scripts into my apanel (admincp) folder and attempt to execute them, I get a blank page with the titlebar at the top of the frame. I have the exact same problem with different php scripts including the vbagallery_installation.php file and the php scripts for installing games into v3arcade.

    Here is the source of the frame in apanel when I attempt to execute a game php script

    Code:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="ltr" lang="en">
    <head>
     <title>Arcade Games - vBulletin Admin Control Panel</title>
     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
     <link rel="stylesheet" href="../cpstyles/vBulletin_3_Default/controlpanel.css" />
     <script type="text/javascript">
     <!--
     var SESSIONHASH = "";
     function set_cp_title()
     {
      if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'string')
      {
       parent.document.title = (document.title != '' ? document.title : 'vBulletin');
      }
     }
     //-->
     </script>
     <script type="text/javascript" src="../clientscript/vbulletin_global.js"></script>
    </head>
    <body style="margin:0px" onload="set_cp_title();">
    <div class="pagetitle">Arcade Games</div>
    <div style="margin:10px">
    <!-- END CONTROL PANEL HEADER -->
    and here is the script that is generating that code
    Code:
     
    <?php
    /*======================================================================*\
    || #################################################################### ||
    || # vBulletin 3.0.0 Release Candidate 2 - Licence Number
    || # ---------------------------------------------------------------- # ||
    || # All PHP code in this file is ©2000-2004 Jelsoft Enterprises Ltd. # ||
    || # This file may not be redistributed in whole or significant part. # ||
    || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
    || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
    || #################################################################### ||
    \*======================================================================*/
    // ######################## SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);
    // ##################### DEFINE IMPORTANT CONSTANTS #######################
    define('CVS_REVISION', '$RCSfile: pacman.game.php,v $ - $Revision: 1.35 $');
    define('NO_REGISTER_GLOBALS', 1);
    // #################### PRE-CACHE TEMPLATES AND DATA ######################
    $phrasegroups = array();
    $specialtemplates = array();
    require_once('./global.php');
    print_cp_header("v3 Arcade - Pacman");
    // welcome step
    if (!isset($_POST['do']))
    {
     $gameexists = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games WHERE shortname='pacman'");
     if ($DB_site->num_rows($gameexists)==0) {
      print_form_header('pacman.game', 'stepone');
      print_table_header("v3 Arcade - Pacman");
      print_description_row("This script will install Pacman for your v3 Arcade.<p>
      Make sure you upload the following files:<br>
      pacman1.gif -> /images/arcade/pacman1.gif<br>
      pacman2.gif -> /images/arcade/pacman2.gif<br>
      pacman.swf -> /games/pacman.swf<p>
      Click on \"Install Pacman\" to begin the installation.");
      print_submit_row("Install Pacman", 0);
     } else {
      print_form_header('pacman.game', 'stepone');
      print_table_header("v3 Arcade - Pacman");
      print_description_row("Pacman is already installed!");
     }
    }
    // #############################################################################
    // step 1
    if ($_POST['do'] == "stepone")
    {
     $DB_site->query("INSERT INTO " . TABLE_PREFIX . "games (shortname, gameid, title, descr, file, width, height, miniimage, stdimage, gamesettings, highscorerid, highscore) VALUES ('pacman', NULL, 'Pacman', 'The yellow blob returns! Eat the pills and jack up your score in this arcade classic.', 'pacman.swf', 360, 420, 'pacman2.gif', 'pacman1.gif', 29, NULL, NULL)");  
     $DB_site->query("
      INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, <b>Pacman</b>','newgame'," . TIMENOW . ")
     "); 
     print_form_header('pacman.game', '');
     print_table_header("v3 Arcade - Pacman");
     print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)");
    }
     
    /*======================================================================*\
    || ####################################################################
    || # Downloaded: 13:43, Tue Jan 6th 2004
    || # CVS: $RCSfile: usertitle.php,v $ - $Revision: 1.35 $
    || ####################################################################
    \*======================================================================*/
    ?>
    I realize support is not offered for hacks, but this is a generic problem unrelated to the two php files themselves.

    A couple things: my whole site is running behind SSL and my admincp and modcp folders have been changed to apanel and mpanel, respectively. Could either of these be the problem?

    Also, is there a chance that even though I chmod the necessary directories to 777, something in the hosts settings is overriding that and that is what is causing this??

    I'm sure this is a very simple problem for someone more knowledgable in PHP than I, I've been trying to fix this for days!
    Last edited by opteek; Wed 14th Dec '05, 6:45am.

Related Topics

Collapse

  • 2Luke2
    Module to call php code
    by 2Luke2
    I'm trying to create a module that will run a php script. below is my php script. I guess I just don't know well enough how to make that run on the forums. I tried to put the raw data in a static html...
    Wed 13th Feb '13, 7:08am
Working...
X