Forums

Error with ccv5 and cfv5 in edit action

dom10r 10 Jan, 2015
Hi,
I try tutorial connectivity-edit-with-chronoforms.
But when I submit i haved blank page so I enable debug php and this error is displaying:

( ! ) Fatal error: Cannot redeclare class GCore\Models\tableDom in C:\wamp\www\libraries\cegcore\libs\model.php(142) : eval()'d code on line 4
Call Stack
# Time Memory Function Location
1 0.0020 141816 {main}( ) ..\index.php:0
2 0.2344 2107672 JApplicationCms->execute( ) ..\index.php:40
3 0.2344 2107880 JApplicationSite->doExecute( ) ..\cms.php:251
4 0.5605 3775784 JApplicationSite->dispatch( ) ..\site.php:237
5 0.5791 3842464 JComponentHelper::renderComponent( ) ..\site.php:191
6 0.5908 3846880 JComponentHelper::executeComponent( ) ..\helper.php:332
7 0.5928 3870376 require_once( 'C:\wamp\www\components\com_chronoconnectivity5\chronoconnectivity5.php' ) ..\helper.php:352
8 0.5957 3895960 JoomlaGCLoader->__construct( ) ..\chronoconnectivity5.php:27
9 0.6455 4283144 GCore\Libs\AppJ::call( ) ..\joomla_gcloader.php:97
10 0.6455 4285184 GCore\Libs\AppJ->dispatch( ) ..\app_j.php:392
11 0.9512 6211288 GCore\Libs\View->renderView( ) ..\app_j.php:257
12 0.9561 6236000 include( 'C:\wamp\www\administrator\components\com_chronoconnectivity5\chronoconnectivity\views\lists\edit.php' ) ..\view.php:75
13 0.9561 6253488 GCore\Libs\App::call( ) ..\edit.php:11
14 0.9570 6254248 GCore\Libs\AppJ->dispatch( ) ..\app.php:273
15 0.9639 6294368 GCore\Extensions\Chronoforms\Chronoforms->index( ) ..\app_j.php:249
16 0.9951 6472168 GCore\Extensions\Chronoforms\Libs\Form->process( ) ..\chronoforms.php:44
17 1.0088 6506424 GCore\Extensions\Chronoforms\Libs\Form->runAction( ) ..\form.php:84
18 1.0156 6518160 GCore\Admin\Extensions\Chronoforms\Actions\ConnectionAction\ConnectionAction->execute( ) ..\form.php:106
19 1.0156 6518568 GCore\Libs\App::call( ) ..\connection_action.php:21
20 1.0156 6519280 GCore\Libs\AppJ->dispatch( ) ..\app.php:273
21 1.0469 6550296 GCore\Admin\Extensions\Chronoconnectivity\Controllers\Lists->_initialize( ) ..\app_j.php:219
22 1.0498 6582480 GCore\Libs\Model::generateModel( ) ..\lists.php:38
23 1.0498 6585256 eval( ' namespace GCore\Models; if(!class_exists("GCore\Models\tableDom", false)){ class tableDom extends \GCore\Libs\Model {var $tablename = 'k2rt4_chronoengine_chronoforms_datatable_testdom'; } } ' )


Can you help me please?
Dominique
GreyHead 10 Jan, 2015
Hi Dominique,

I can't see what the problem is - it is two deep in Max's code an there appears to be a check to stop this error happening
if(!class_exists("GCore\Models\tableDom", false)){ 


One thing you might try is to re-install the latest version of CFv5 over the existing installation to make sure that you have the latest version of the GCore files (if you install CCv5 last apparently some of the files may be older versions).

Bob
dom10r 11 Jan, 2015
Hi Bob,
After re-install the latest version of CFv5
i have this error from ccV5:


( ! ) Fatal error: Access to undeclared static property: GCore\Helpers\DataPresenter::$data in C:\wamp\www\administrator\components\com_chronoconnectivity5\chronoconnectivity\blocks\table.php on line 49
Call Stack
# Time Memory Function Location
1 0.0186 138080 {main}( ) ..\index.php:0
2 0.3145 2112872 JApplicationCms->execute( ) ..\index.php:40
3 0.3145 2113080 JApplicationSite->doExecute( ) ..\cms.php:251
4 0.7002 3745712 JApplicationSite->dispatch( ) ..\site.php:237
5 0.7148 3783656 JComponentHelper::renderComponent( ) ..\site.php:191
6 0.7598 3788200 JComponentHelper::executeComponent( ) ..\helper.php:332
7 0.7725 3811696 require_once( 'C:\wamp\www\components\com_chronoconnectivity5\chronoconnectivity5.php' ) ..\helper.php:352
8 0.7744 3837896 JoomlaGCLoader->__construct( ) ..\chronoconnectivity5.php:27
9 0.8057 4241128 GCore\Libs\AppJ::call( ) ..\joomla_gcloader.php:101
10 0.8057 4243176 GCore\Libs\AppJ->dispatch( ) ..\app_j.php:394
11 1.2256 6246024 GCore\Libs\View->renderView( ) ..\app_j.php:257
12 1.2314 6266792 include( 'C:\wamp\www\administrator\components\com_chronoconnectivity5\chronoconnectivity\views\lists\index.php' ) ..\view.php:76
13 1.2363 6275328 GCore\Admin\Extensions\Chronoconnectivity\Blocks\Table->display( )
GreyHead 11 Jan, 2015
Hi Dominique,

Sorry for the problems you are having. Please contact Max using the Contact Us menu above and link to this thread. I believe that he has a patch for this error - but it only seems to show up if no records are found in the listing so there may be something else underlying.

Bob
Max_admin 12 Jan, 2015
Hi,

Here is the patch file for the CCv5 error:
http://www.chronoengine.com/forums/posts/t98402/p340897/any-ccv5-list-make-entire-blank-page-in-front.html#p340897

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dom10r 12 Jan, 2015
Answer
hi Max
Thanks a lot
It's working
This topic is locked and no more replies can be posted.