This topic is locked

A Couple of Bugs

1/23/2006 10:01:44
PHPRunner General questions
T
Tommy B author

I wanted to make you aware of a couple of bugs. I say they're bugs, but honestly, they were problems that just resulted in errors for me. I'll post what PHPRunner built, and then I'll post what I used to resolve the problem.
For the record, I'm using PHPRunner 3.0, build 83.
I have my script to send an email of old data when a record is updated, and an email of new data when a new record is added.
The error I get right after logging in is:

Parse error: parse error, unexpected T_CONCAT_EQUAL in /home/xx/xx/xx.com/public_html/xx/xx/xx/managers/include/ManagerProductivity_events.php on line 17


Line 17 reads:

message.= $field." : ".$value."\r\n";


If I add a "$" in front of message.= the error dissapears.
The corrected line looks like this:

$message.= $field." : ".$value."\r\n";


This same error occurs on the same page on line 49. This is the event that sends the new data.
Again the error and correction read as follows:
Problematic Code:

message.= $field." : ".$value."\r\n";


Solution:

$message.= $field." : ".$value."\r\n";


Once these two errors are fixed, I'm able to get to the list page.
(Edited to Add)
I removed a suggestion of a bug with the date function. I realized this was a function that I entered into my project manually. I apologize for any confusion.
Also (I noticed this with the previous PHPRunner version as well), when you change the alignment of the fields it should also change the alignment of the headings right? This is not the case. Whether it's a bug or not, I don't know.
Once these corrections are made, I have no other problems. I'm not a PHP guru or anything, I just stumbled upon these "fixes" within the PHP documentation, so please only take my suggestions as that, suggestions. I hope this helps administrators improve this great product.

Sergey Kornilov admin 1/24/2006

Tommy,
thank you for pointing me to this.

There is a bug in sample event code.

We'll fix this in the next PHPRunner release.
PHPRunner doesn't contain date(m-d-Y) expression.

It seems that you entered this as a Default value for you date field on Formattingtab in PHPRunner.

T
Tommy B author 1/24/2006

How about the other problem I mentioned? Is it a bug or am I doing something wrong?
When I specify the alignment to be centered, the data is centered but the column heading is not.
----------------EDIT------------------
I didn't realize this could be changed in the stylesheet. Was it like that in the last version? Anyway, this is no longer an issue for me. Not a bug for sure.

K
kushaaal 4/8/2006

Parse error: parse error, unexpected T_RETURN in /usr/local/psa/home/vhosts/XXXX.com/XXXXX/IO/include/events.php on line 17


Why am I getting this? There is no line 17 in events.php.

How can I correct this

Sergey Kornilov admin 4/10/2006

Hi,
show me your events.php file contents and I'll tell you what's wrong.