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
   
 
T_String Error
Posted: 17 February 2005 10:08 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  2004-12-31

I am trying to add a bbClone counter (http://bbclone.de) to weblog.php

My ISP gave me the following code for this;

<?php
     define(“_BBCLONE_DIR”, “/content/StartupHostPlus/s/t/www.stockting.com/web/bbclone/”);
     define(“COUNTER”, _BBCLONE_DIR.“mark_page.php”);
     if (is_readable(COUNTER)) include_once(COUNTER);
?>

when I tru to load the page Safari always comes back with a T_String Error on line_x - being the line that starts “define….”

I am I violating some principle of pMachinePro?

If you go to this example from my site you can see that the problem is not on the site; it is with weblog.php

Does anyone have any suggestions - because I do not know what a T_STRING is..;-((

Thanks in advance..

——————————————————<example.php code>——————————————————

<?php

//***** COPY THE LINES OF TEXT BELOW INTO YOUR PAGES.  MAKE SURE YOU ENCLOSE THE TEXT WITHIN PHP TAGS *****
  define(“_BBCLONE_DIR”, “/content/StartupHostPlus/s/t/www.stockting.com/web/bbclone/”);
  define(“COUNTER”, _BBCLONE_DIR.“mark_page.php”);
  if (is_readable(COUNTER)) include_once(COUNTER);

?>
<html>
<head>
<title>Example Counter Page</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
</head>
<body bgcolor=”#FFFFFF” text=”#000000”>
This is a test page.  <br><br>
If you look at this page in a text editor you will see the bit of code you will need<br>
to add to the top of your pages in order for them to be counted by the BBClone software.
<br><br><a href=’/bbclone/’>Click here to view stats</a>
</body>
</html>

 Signature 

There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy - William Shakespeare

Profile
 
 
Posted: 17 February 2005 10:57 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

It’s possible that something in the “bbClone” script conflicts with something in pMachine.  Not knowing what code is used inside of bbClone it’s hard to know.

Further:

1. Listing the exact error message you receive can be helpful.

2. If you have debugging turned on in pMachine, then it could be outputting errors/warnings that are actually occurring on your “example” page but simply aren’t being displayed because it doesn’t have error reporting turned on.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 17 February 2005 11:13 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  2004-12-31

I’ve slotted the code back in so that you can see the oage at www.stockting.com/weblog.php and have the following setting in ./pm/config.php

// DEBUG
// This variables turns PHP and MySQL error message on or off for
// debugging purposes. It is recommended that you leave debug on during
// development only - not with a “live” site, due to security issues.
// 1 = on
// 0 = off
  $debug = 1;

Does this help?

 Signature 

There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy - William Shakespeare

Profile
 
 
Posted: 17 February 2005 11:16 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  2004-12-31

ye-gads!

I think it is now working.

I used the example code rather than the given code and with $debug=1 it is running.

I’m going back to 0 to see that happens.

Jules

 Signature 

There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy - William Shakespeare

Profile
 
 
Posted: 17 February 2005 11:20 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  2004-12-31

It now runs with $debug=0

I cannot see what is different between the given and the sample code other than maybe a time difference. I wonder if my host is caching files and things need time to bed in…..talkin’ like I know anything - which I do not.

Go to www stockting.com/bbclone/index.php to see yourself…..wink

Brgds and thanks/Jules

 Signature 

There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy - William Shakespeare

Profile
 
 
Posted: 11 April 2006 12:53 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  2004-06-03

Hunh?

Does anyone have this running in EE?

I use it on all my other sites, and finally added it to my EE site, but in the debug mode it returns saying it is being called by another function and that this is a known issue with bbclone and CMS software. I imagine there is an easy workaround, but I can’t locate one, and my time is too limited to work on it much.

I may have to anyway, but I’m interested in whether anyone has already done it ...

Profile
 
 
Posted: 11 April 2006 10:30 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  2004-06-03

Okay, I see that there is no workaround for putting the code in a template. Not that it seems anyone is particularly interested.  wink  But I like bbclone myself, and the price is right. Anyway, it turns out that the alternate .htaccess method is an adequate workaround. You use auto_append to add the code to your files after parsing by EE so that the bbclone counter marking code remains in the global namespace. Then it works fine. FWIW to whomever might actually be interested.

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: 64508 Total Logged-in Users: 0
Total Topics: 81067 Total Anonymous Users: 0
Total Replies: 436293 Total Guests: 22
Total Posts: 517360    
Members ( View Memberlist )
Active Members: