Error when trying to compile a component #76
Closed
opened 2017-05-04 10:05:08 +00:00 by nosfas
·
5 comments
No Branch/Tag Specified
6.x
5.x
4.x
3.x
v6.2.0
v5.2.0
v4.2.0
v6.1.6
v5.1.6
v4.1.5
v6.1.5
v5.1.5
v4.1.4
v6.1.4
v5.1.4
v4.1.3
v6.1.3
v5.1.3
v6.1.2
v5.1.2
v4.1.2
v5.1.1
v4.1.1
v4.1.0
v3.2.5
v5.1.0
v5.0.3
v4.0.3
v3.2.4
v5.0.2
v4.0.2
v3.2.3
v5.0.1
v4.0.1
v3.2.2
v5.0.0
v4.0.0
v3.2.1
v3.2.0
v3.1.28
v3.1.27
v3.1.26
v3.1.24
v3.1.19
v3.1.17
v3.1.15
v3.1.12
v3.1.11
v3.1.10
v3.1.9
v3.1.8
v3.1.7
v3.1.6
v3.1.5
v3.1.4
v3.1.3
v3.1.2
v2.13.1
v2.13.0
v2.12.16
v2.12.15
v2.12.14
v2.12.10
v2.12.9
v2.12.8
v2.12.7
v2.12.6
v2.12.4
v2.12.3
v2.12.2
v2.11.7
v2.11.4
v2.11.3
v2.11.2
v2.11.0
v2.10.13
v2.10.11
v2.10.9
v2.10.5
v2.10.1
v2.10.0
v2.9.21
v2.9.18
v2.9.14
v2.9.11
v2.9.10
v2.9.8
v2.9.7
v2.9.1
v2.9.0
v2.8.5
v2.8.4
v2.8.2
v2.8.0
v2.7.10
v2.7.7
v2.7.6
v2.7.5
v2.7.4
v2.7.1
v2.7.0
v2.6.17
v2.6.16
v2.6.15
v2.6.14
v2.6.13
v2.6.12
v2.6.11
v2.6.10
v2.6.9
v2.6.8
v2.6.7
v2.6.6
v2.6.5
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.5.8
v2.5.6
v2.5.5
v2.5.4
v2.5.1
v2.5.0
v2.4.10
v2.4.9
v2.4.8
v2.4.7
v2.4.6
v2.4.5
v2.4.4
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.10
v2.3.9
v2.3.8
v2.3.7
v2.3.6
v2.3.5
v2.3.4
v2.3.2
v2.3.1
v2.3.0
v2.2.10
v2.2.9
v2.2.6
v2.2.5
v2.2.4
v2.2.3
v2.2.2
v2.2.0
v2.1.21
v2.1.20
v2.1.19
v2.1.18
v2.1.17
v2.1.16
v2.1.14
v2.1.13
v2.1.12
v2.1.11
v2.1.10
v2.1.9
v2.1.8
v2.1.7
v2.1.6
v2.1.5
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.9
v2.0.8
No labels
Milestone
No items
No Milestone
Free Support
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#76
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Installed JCB on 2 different Joomla sites, one with Joomla 3.7 and the other with the 3.6.5 version.
Built the component as best as I could understand by looking at the demo on each joomla site.
Tryed to compile on both, neither completed.
Getting the following error on both Joomla compilations:
0 DateTime::__construct(): Failed to parse time string (-001-11-30T00:00:00+00:00) at position 7 (-): Double timezone specification
The Demo compilation works, but not anything else.
Managed to enable the Joomla debug options and got the call stack:
Call stack
Function Location
1 DateTime->__construct() JROOT/libraries/joomla/date/date.php:118
2 JDate->__construct() JROOT/libraries/joomla/factory.php:530
3 JFactory::getDate() JROOT/administrator/components/com_componentbuilder/helpers/compiler/b_Structure.php:799
4 Structure->getLastModifiedDate() JROOT/administrator/components/com_componentbuilder/helpers/compiler/b_Structure.php:642
5 Structure->setDynamique() JROOT/administrator/components/com_componentbuilder/helpers/compiler/b_Structure.php:342
6 Structure->__construct() JROOT/administrator/components/com_componentbuilder/helpers/compiler/e_Interpretation.php:61
7 Interpretation->__construct() JROOT/administrator/components/com_componentbuilder/helpers/compiler/f_Infusion.php:46
8 Infusion->__construct() JROOT/administrator/components/com_componentbuilder/helpers/compiler.php:68
9 Compiler->__construct() JROOT/administrator/components/com_componentbuilder/models/compiler.php:176
10 ComponentbuilderModelCompiler->builder() JROOT/administrator/components/com_componentbuilder/controllers/compiler.php:79
11 ComponentbuilderControllerCompiler->compiler() JROOT/libraries/legacy/controller/legacy.php:709
12 JControllerLegacy->execute() JROOT/administrator/components/com_componentbuilder/componentbuilder.php:59
13 require_once() JROOT/libraries/cms/component/helper.php:394
14 JComponentHelper::executeComponent() JROOT/libraries/cms/component/helper.php:369
15 JComponentHelper::renderComponent() JROOT/libraries/cms/application/administrator.php:98
16 JApplicationAdministrator->dispatch() JROOT/libraries/cms/application/administrator.php:156
17 JApplicationAdministrator->doExecute() JROOT/libraries/cms/application/cms.php:265
18 JApplicationCms->execute() JROOT/administrator/index.php:51
Update:
Aparently there's a bug somewhere when setting the value for the field "modified" on the JCB tables.
Noticed the function getLastModifiedDate() and then found out what it did.
Looked for the modified date value in the tables, and found that every record created when creating my component, had the "created" filled and the "modified" with the default value "0000-00-00 00:00:00".
Updated the modified date with the value in the creating field for every record related to my component.
The compiled worked this time.
Any thoughts?
We resolved this bug in issue gh-39 but I will have a look at it again.
@nosfas can you download this stage version and check if the problem is resolved when faced with the same values that caused the error/bug in the first place.
Sure, not at the work atm.
Tomorrow I'll try.
Thank you.
Seems to be working fine now.
Thank you.