Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Weird Parse Error
Posted: 07 July 2004 09:12 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  38
Joined  2002-09-23

Hello: I’ve done a number of pMachine installations which normally go quite smoothly. However I just installed pMachine Pro on pMachine Hosting and I am getting this parse error:

Parse error: parse error in /home/pmh2541/public_html/sermons/chalice/lib/weblog.fns.php on line 2468

Thanks,

Bob S.

Here is the code surrounding line 2468 if that will help:

// ---------------------------------------------
// RANDOM FIELD GENERATOR
// ---------------------------------------------

function random_field_id($weblog="”, $limit="")
{
global $db_weblog, $sfx;

$db = new DB();

$newtime = get_offset_time();

$idlist = array();
$count =1;

$qry = “select post_id
from $db_weblog
where status = ‘open’
and preview != ‘1’
and t_stamp <object())
{
$idlist[$count] = $query->obj->post_id;
$count ++;
}

$total = sizeof($idlist);

mt_srand((double)microtime() * 1000000);
$rand = mt_rand(1,$total);

return $idlist["$rand"];
}
// END

 Signature 

“Don’t believe everything you think.”

Profile
 
 
Posted: 07 July 2004 10:36 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  38
Joined  2002-09-23

Never Mind. I found the answer by searching the forum.

A <;> was missing from the source code. BBEdit fixed that.

Thanks,

Bob S.

 Signature 

“Don’t believe everything you think.”

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 60703 Total Logged-in Users: 0
Total Topics: 73143 Total Anonymous Users: 0
Total Replies: 394496 Total Guests: 33
Total Posts: 467639    
Members ( View Memberlist )
Active Members: