EllisLab text mark
Advanced Search
     
Profiler bug line 168 - 169
Posted: 31 July 2007 02:58 PM   [ Ignore ]
Avatar
Joined: 2007-06-05
80 posts

As I have posted on the freakauth 1.1 thread

@DanFreak

Since we’re in the process of fine tuning Fal I would like to introduce another niggle hehe. Once I got the myaccount/edit controler/method working. CI seems to spout out a strange but interesting error.

Parse errorsyntax errorunexpected '"'expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\myswebsite\system\libraries\Profiler.php on line 169 

Upon inspection of this of Profiler.php line 169

line 168://$output .= "<tr><td width='50%' style='color:#000;background-color:#ddd;'>&#36;_POST[".$key."]&nbsp;&nbsp;</td><td width='50%' style='color:#009900;font-weight:normal;background-color:#ddd;'>".htmlspecialchars(stripslashes($val))."</td></tr>\n";

line 169:$output .= "<tr><td width='50%' style='color:#000;background-color:#ddd;'>$_POST[".$key."]  </td><td width='50%' style='color:#009900;font-weight:normal;background-color:#ddd;'>"

It seems line 168 was commented out to make room for line 169. So as an experiment decided to comment out line 169 as well and lo and behold it worked! but there was this weird benchmark result that comes out of the bottom of the edit form..

please click on link below(sorry I don’t know how does this forum display images).
http://i8.photobucket.com/albums/a21/jamongkad/error.jpg

A pic of the error in this link:
http://i8.photobucket.com/albums/a21/jamongkad/error.jpg

My tools:
Code Igniter 1.5.3
FreakAuth_light_1.1

I will attempt to fix this on my own grin but help from Rick and the gang would be nice.

 Signature 

Functional PHP Extension A set of higher-order functions and other primatives written in PHP (3/4 compatible) which let you write php code in a functional style, similar to the way you might in Haskell, Scheme, or ML.

 
Posted: 31 July 2007 03:09 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-06-23
370 posts

This was fixed in CI v1.5.4.


(edited)

 Signature 

Mac OS X 10.8, Apache 2.x, NGiNX, PHP 5.4.x, CodeIgniter 1.7.2/2.1.3

 
Posted: 31 July 2007 03:11 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2006-06-23
370 posts

Okay, I think it’s trying to parse the $_POST in there. It would be better to swap the single and double quotes.

line 169:$output .= '<tr><td width="50%" style="color:#000;background-color:#ddd;">$_POST['.$key.']</td><td width="50%" style="color:#009900;font-weight:normal;background-color:#ddd;">'
 Signature 

Mac OS X 10.8, Apache 2.x, NGiNX, PHP 5.4.x, CodeIgniter 1.7.2/2.1.3

 
Posted: 31 July 2007 03:14 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2006-06-23
370 posts

Revised my post. Bump.

 Signature 

Mac OS X 10.8, Apache 2.x, NGiNX, PHP 5.4.x, CodeIgniter 1.7.2/2.1.3

 
Posted: 31 July 2007 03:15 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-05
80 posts

Thanks CF when I corrected this the Benchmark still shows itself at the bottom of my edit form…. :(

 Signature 

Functional PHP Extension A set of higher-order functions and other primatives written in PHP (3/4 compatible) which let you write php code in a functional style, similar to the way you might in Haskell, Scheme, or ML.

 
Posted: 31 July 2007 03:20 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2006-06-23
370 posts

Sorry man, I don’t use the Profiler. Only going by what you posted. I could be missing something important in the rest of the code. Probably want to leave that commented out for now.

 Signature 

Mac OS X 10.8, Apache 2.x, NGiNX, PHP 5.4.x, CodeIgniter 1.7.2/2.1.3

 
Posted: 31 July 2007 03:22 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-05
80 posts
coolfactor - 31 July 2007 07:20 PM

Sorry man, I don’t use the Profiler. Only going by what you posted. I could be missing something important in the rest of the code. Probably want to leave that commented out for now.

Thanks man, I’ll leave that commented out as well.

 Signature 

Functional PHP Extension A set of higher-order functions and other primatives written in PHP (3/4 compatible) which let you write php code in a functional style, similar to the way you might in Haskell, Scheme, or ML.

 
Posted: 31 July 2007 04:56 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2002-06-03
6432 posts

This was fixed in 1.5.4, Jamon.

Fixed a bug in display of POST keys in the Profiler output

 
Posted: 01 August 2007 02:43 AM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-05
80 posts
Derek Jones - 31 July 2007 08:56 PM

This was fixed in 1.5.4, Jamon.

Fixed a bug in display of POST keys in the Profiler output

Oh ok thank you!

 Signature 

Functional PHP Extension A set of higher-order functions and other primatives written in PHP (3/4 compatible) which let you write php code in a functional style, similar to the way you might in Haskell, Scheme, or ML.