Forums

ChronoConnectivity unable to submit after edit

ctrlmedia 17 Nov, 2014
Hello,

This is my first post and would like to say I really like this solution.
I have used for more simple tasks and it works perfectly.

The issue I am having at the minute is this error:
Fatal error: Cannot redeclare class GCore\Models\teacherlist in ......... /libraries/cegcore/libs/model.php(142) : eval()'d code on line 4

This is to do with having two models in CronoConnectivity as far as I can see. (both with different names)

I have a model called yearbooklist and another model teacherlist.
What I have tried to achieve is that for this school year (yearbooklist) I will get a list of teachers from another table (teacherlist) using the 'hasMany' relation.

This works fine. I click on the edit button of the yearbook I want and using the debugger I have placed in the form I see an array of the yearbook table for this particular yearbook (yearbooklist) and the 9 teachers in another array (teacherlist) linked to this year.

So when I click submit I get the error mentioned earlier.

I was wondering whether anyone had any ideas?
I have changed lots of settings and played around with changing the join etc might I be missing something obvious?
I am happy to supply more information if required. (probably required)

Thanks in advance for any help.
Regards
Mark
ctrlmedia 18 Nov, 2014
Oh it seems I have posted here before - I remember now. I got great help.
I thought that I would post a follow up as I have tried to start the whole process again and still get the same error.
I have put a debugger then showstopper in before the connection and I cant see any errors?
Any advice would be much appreciated.
Regards
Mark
Max_admin 18 Nov, 2014
Answer
Hi Mark,

Please make sure you have the latest updates of Chronoforms and ChronoConnectivity, download and install the latest Connectivity first then install the latest Chronoforms!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ctrlmedia 19 Nov, 2014
Hi Max,

I was sure I installed the latest updates!
I have just updated CF to 5.0.3 and I am now not getting that error (whoop) but I am just testing to make sure it is all working. I will post a follow-up shortly.

Thanks for your help.
Regards
Mark
ctrlmedia 19 Nov, 2014
Yep, all fixed I think.
All that was needed was an update.

Thanks again for your help.
Regards
Mark
This topic is locked and no more replies can be posted.