Jump to content

Help with Code Errors in PHP Script


TRB

Recommended Posts

The code is for a password protected section of our website. Instead all that keeps coming up is blank pages.

This just started happening within the last 3-4 days, prior to that everything worked fine.

Here is the code:

<?php

session_cache_limiter('private, must-revalidate');

session_start();

define('PEAR_DB_PATH','/home/cust1/user1079862/html/oss/lib/PEAR/DB.php');

require_once '/home/cust1/user1079862/html/oss/lib/userValidator.class.php';

$authClass=new userValidator(101);

$authClass->validateRequest();

?>

 

Any help would be much appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/88297-help-with-code-errors-in-php-script/
Share on other sites

<?php
session_cache_limiter('private', 'must-revalidate');
session_start();
define('PEAR_DB_PATH','/home/cust1/user1079862/html/oss/lib/PEAR/DB.php');
require_once ('/home/cust1/user1079862/html/oss/lib/userValidator.class.php');
$authClass=new userValidator(101);
$authClass->validateRequest();
?>

 

try and replace your code with that a couple of minor errors with speach marks and ()

 

ps

Blank php pages are usually caused by fatal parse or fatal runtime errors. Check your web server log.

 

Also, code does not just stop running on its own (unless it is poorly written and a condition occurs that it does not test for and properly handle and recover from) unless something changed on the server. Check if your host upgraded anything or changed settings at about the time the code stopped working.

They keep saying it's a script error.

The scripts have worked perfectly for a very long time and suddenly nothing.

The error log doesn't show any of it.

 

The pages show up blank and the source code is empty.

Here's a link for an example:

http://www.preproundball.com/texasroundball/team.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.