This topic is locked

Events from PHPR 5.3 project are not vissible in 6.2

11/29/2012 3:50:29 AM
PHPRunner General questions
J
jacekq author

Hello,
I've met with a strange situation: I've tried to switch from PHPR 5.3 project to 6.2 project and all worked fine except events.
On event tab of PHPR 6.2 I can see no events code - nothing is bolded and events defined in PHPR 5.3 are empty. But events.php generated by PHPR 6.2 project with this 'empty' events contains code form 5.3.

On the other hand, If I try to define event which was defined previously in PHPR 5.3 project I receive the message:

Fatal error: Cannot redeclare class_GlobalEvents::AfterSuccessfulLogin() in ...autorzy\include\events.php on line 110



The problem is that event code is generated twice: one fuction contains old 5.3 code and the second new code...
I can clear event code in PHPR 6.2, paste it to generated events.php manualy (add some modification to the given AfterSuccessfulLogin() event) and it will work.

But all changes will disapear after new build of the 6.2 project. The code form PHPR 5.3 is sowhere in xml project file but is not visible to edit in PHPR 6.2.
Best Regards,

Jacek

C
cgphp 11/29/2012

I advise you to rebuild the project for the new version step by step. Direct conversion is not a good thing. PHPrunner 6.2 has introduced too many changes.

Sergey Kornilov admin 11/29/2012

Jacek,
as a first step make sure you have the latest public build of PHPRunner installed. If this doesn't help contact support directly sending your project directory zipped.

J
jacekq author 11/30/2012



Jacek,
as a first step make sure you have the latest public build of PHPRunner installed. If this doesn't help contact support directly sending your project directory zipped.


I've used PHPR 6.2 build 13793. I'll try with 13859 and let you know...
Jacek