- Posts: 12
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- DateTime::__construct(): Failed to parse time string (-1-11-
DateTime::__construct(): Failed to parse time string (-1-11-
- Eddie May
- Topic Author
- Offline
- New Member
Less
More
6 years 11 months ago #165608
by Eddie May
DateTime::__construct(): Failed to parse time string (-1-11- was created by Eddie May
Hi,
I've had this problem intermittently on K2 items - each time I've resolved by deleting tags on the item, saving & then reapplying tags & saving.
But I'm now getting this on a menu item. The error is as follows:
Oh, dear, we have a 0
DateTime::__construct(): Failed to parse time string (-1-11-30) at position 5 (-): Double timezone specification
The menu is a K2 Categories menu K2 » Item listings » Categories
index.php?option=com_k2&view=itemlist&layout=category&task=category&id=4
Here are the params for this menu item:
{"inheritFrom":"0","catMetaDesc":"","catMetaKey":"","catMetaRobots":"","catMetaAuthor":"Eddie","theme":"","num_leading_items":"2","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"4","num_primary_columns":"2","primaryImgSize":"Medium","num_secondary_items":"4","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"4","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"1","catImage":"1","catFeedLink":"0","catFeedIcon":"0","subCategories":"1","subCatColumns":"2","subCatOrdering":"","subCatTitle":"1","subCatTitleItemCounter":"1","subCatDescription":"1","subCatImage":"1","itemImageXS":"","itemImageS":"","itemImageM":"","itemImageL":"","itemImageXL":"","catItemTitle":"1","catItemTitleLinked":"1","catItemFeaturedNotice":"0","catItemAuthor":"1","catItemDateCreated":"1","catItemRating":"0","catItemImage":"1","catItemIntroText":"1","catItemIntroTextWordLimit":"100","catItemExtraFields":"1","catItemHits":"0","catItemCategory":"1","catItemTags":"1","catItemAttachments":"0","catItemAttachmentsCounter":"1","catItemVideo":"1","catItemVideoWidth":"","catItemVideoHeight":"","catItemAudioWidth":"","catItemAudioHeight":"","catItemVideoAutoPlay":"1","catItemImageGallery":"1","catItemImageGalleryWidth":"","catItemImageGalleryHeight":"","catItemDateModified":"0","catItemReadMore":"1","catItemCommentsAnchor":"1","catItemK2Plugins":"1","itemDateCreated":"1","itemTitle":"1","itemFeaturedNotice":"1","itemAuthor":"0","itemFontResizer":"0","itemPrintButton":"0","itemEmailButton":"0","itemSocialButton":"0","itemVideoAnchor":"1","itemImageGalleryAnchor":"1","itemCommentsAnchor":"1","itemRating":"0","itemImage":"1","itemImgSize":"Large","itemImageMainCaption":"1","itemImageMainCredits":"1","itemIntroText":"1","itemFullText":"1","itemExtraFields":"1","itemDateModified":"0","itemHits":"0","itemCategory":"1","itemTags":"1","itemAttachments":"1","itemAttachmentsCounter":"1","itemVideo":"1","itemVideoWidth":"","itemVideoHeight":"","itemAudioWidth":"","itemAudioHeight":"","itemVideoAutoPlay":"0","itemVideoCaption":"1","itemVideoCredits":"1","itemImageGallery":"1","itemImageGalleryWidth":"","itemImageGalleryHeight":"","itemNavigation":"1","itemComments":"1","itemTwitterButton":"0","itemFacebookButton":"0","itemGooglePlusOneButton":"0","itemAuthorBlock":"0","itemAuthorImage":"0","itemAuthorDescription":"0","itemAuthorURL":"0","itemAuthorEmail":"0","itemAuthorLatest":"0","itemAuthorLatestLimit":"5","itemRelated":"1","itemRelatedLimit":"5","itemRelatedTitle":"1","itemRelatedCategory":"1","itemRelatedImageSize":"0","itemRelatedIntrotext":"0","itemRelatedFulltext":"0","itemRelatedAuthor":"0","itemRelatedMedia":"0","itemRelatedImageGallery":"0","itemK2Plugins":"1"}
Sys Info:
J! 3.8.2
K2 2.8.0
Web Server Apache
PHP version 7.0.25
MySQL version 5.6.36-82.1-log
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 128M
Memory limit 768M
Open remote files (allow url fopen) Yes
Directory permissions
cache Writable
media/k2 Writable
media/k2/attachments Writable
media/k2/categories Writable
media/k2/galleries Writable
media/k2/items Writable
media/k2/users Writable
media/k2/videos Writable
K2 Modules
mod_k2_comments Installed
mod_k2_content Installed
mod_k2_tools Installed
mod_k2_user Installed
K2 Plugins
Finder - K2 Installed - Enabled
Search - K2 Installed - Enabled
System - K2 Installed - Enabled
User - K2 Installed - Enabled
mod_k2_users Installed
mod_k2_quickicons (administrator) Installed
mod_k2_stats (administrator) Installed
I've gone thro the database to make sure each K2 item has a created & modified data.
Any suggestions?
Thanks,
I've had this problem intermittently on K2 items - each time I've resolved by deleting tags on the item, saving & then reapplying tags & saving.
But I'm now getting this on a menu item. The error is as follows:
Oh, dear, we have a 0
DateTime::__construct(): Failed to parse time string (-1-11-30) at position 5 (-): Double timezone specification
The menu is a K2 Categories menu K2 » Item listings » Categories
index.php?option=com_k2&view=itemlist&layout=category&task=category&id=4
Here are the params for this menu item:
{"inheritFrom":"0","catMetaDesc":"","catMetaKey":"","catMetaRobots":"","catMetaAuthor":"Eddie","theme":"","num_leading_items":"2","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"4","num_primary_columns":"2","primaryImgSize":"Medium","num_secondary_items":"4","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"4","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"1","catImage":"1","catFeedLink":"0","catFeedIcon":"0","subCategories":"1","subCatColumns":"2","subCatOrdering":"","subCatTitle":"1","subCatTitleItemCounter":"1","subCatDescription":"1","subCatImage":"1","itemImageXS":"","itemImageS":"","itemImageM":"","itemImageL":"","itemImageXL":"","catItemTitle":"1","catItemTitleLinked":"1","catItemFeaturedNotice":"0","catItemAuthor":"1","catItemDateCreated":"1","catItemRating":"0","catItemImage":"1","catItemIntroText":"1","catItemIntroTextWordLimit":"100","catItemExtraFields":"1","catItemHits":"0","catItemCategory":"1","catItemTags":"1","catItemAttachments":"0","catItemAttachmentsCounter":"1","catItemVideo":"1","catItemVideoWidth":"","catItemVideoHeight":"","catItemAudioWidth":"","catItemAudioHeight":"","catItemVideoAutoPlay":"1","catItemImageGallery":"1","catItemImageGalleryWidth":"","catItemImageGalleryHeight":"","catItemDateModified":"0","catItemReadMore":"1","catItemCommentsAnchor":"1","catItemK2Plugins":"1","itemDateCreated":"1","itemTitle":"1","itemFeaturedNotice":"1","itemAuthor":"0","itemFontResizer":"0","itemPrintButton":"0","itemEmailButton":"0","itemSocialButton":"0","itemVideoAnchor":"1","itemImageGalleryAnchor":"1","itemCommentsAnchor":"1","itemRating":"0","itemImage":"1","itemImgSize":"Large","itemImageMainCaption":"1","itemImageMainCredits":"1","itemIntroText":"1","itemFullText":"1","itemExtraFields":"1","itemDateModified":"0","itemHits":"0","itemCategory":"1","itemTags":"1","itemAttachments":"1","itemAttachmentsCounter":"1","itemVideo":"1","itemVideoWidth":"","itemVideoHeight":"","itemAudioWidth":"","itemAudioHeight":"","itemVideoAutoPlay":"0","itemVideoCaption":"1","itemVideoCredits":"1","itemImageGallery":"1","itemImageGalleryWidth":"","itemImageGalleryHeight":"","itemNavigation":"1","itemComments":"1","itemTwitterButton":"0","itemFacebookButton":"0","itemGooglePlusOneButton":"0","itemAuthorBlock":"0","itemAuthorImage":"0","itemAuthorDescription":"0","itemAuthorURL":"0","itemAuthorEmail":"0","itemAuthorLatest":"0","itemAuthorLatestLimit":"5","itemRelated":"1","itemRelatedLimit":"5","itemRelatedTitle":"1","itemRelatedCategory":"1","itemRelatedImageSize":"0","itemRelatedIntrotext":"0","itemRelatedFulltext":"0","itemRelatedAuthor":"0","itemRelatedMedia":"0","itemRelatedImageGallery":"0","itemK2Plugins":"1"}
Sys Info:
J! 3.8.2
K2 2.8.0
Web Server Apache
PHP version 7.0.25
MySQL version 5.6.36-82.1-log
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 128M
Memory limit 768M
Open remote files (allow url fopen) Yes
Directory permissions
cache Writable
media/k2 Writable
media/k2/attachments Writable
media/k2/categories Writable
media/k2/galleries Writable
media/k2/items Writable
media/k2/users Writable
media/k2/videos Writable
K2 Modules
mod_k2_comments Installed
mod_k2_content Installed
mod_k2_tools Installed
mod_k2_user Installed
K2 Plugins
Finder - K2 Installed - Enabled
Search - K2 Installed - Enabled
System - K2 Installed - Enabled
User - K2 Installed - Enabled
mod_k2_users Installed
mod_k2_quickicons (administrator) Installed
mod_k2_stats (administrator) Installed
I've gone thro the database to make sure each K2 item has a created & modified data.
Any suggestions?
Thanks,
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 11 months ago #165620
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic DateTime::__construct(): Failed to parse time string (-1-11-
Everything looks OK, now some more info,
Are you using overrides?
Are you using any 3rd party K2 extensions?
Are you using overrides?
Are you using any 3rd party K2 extensions?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Eddie May
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
6 years 11 months ago #165631
by Eddie May
Replied by Eddie May on topic DateTime::__construct(): Failed to parse time string (-1-11-
Hi,
Thanks for the reply.
K2 plugins, etc
K2 Administrator Component 2.8.0
K2 Comments
Site Module 2.8.0
K2 Content
Site Module 2.8.0
K2 Quick Icons (admin)
Administrator Module 2.8.0
K2 Stats (admin)
Administrator Module 2.8.0
K2 Tools
Site Module 2.8.0
K2 User
Site Module 2.8.0
K2 Users
Site Module 2.8.0
Multiple Extra Fields Groups for K2
Site Plugin 1.0.41
Search - K2
Site Plugin 2.8.0
Smart Search - K2
Site Plugin 2.8.0
System - K2
Site Plugin 2.8.0 August 18th, 2017 JoomlaWorks system 10003
System - K2MultiImages
Site Plugin 1.4.1 March 2016 Andrey Miasoedov system 10031
User - K2
Site Plugin 2.8.0 August 18th, 2017 JoomlaWorks
Third-party Extensions
AllVideos (plugin) Installed
Simple Image Gallery Pro (plugin) Not Installed
Template:
Joostrap
html>K2MultiImages
com_content > category
Thanks
Thanks for the reply.
K2 plugins, etc
K2 Administrator Component 2.8.0
K2 Comments
Site Module 2.8.0
K2 Content
Site Module 2.8.0
K2 Quick Icons (admin)
Administrator Module 2.8.0
K2 Stats (admin)
Administrator Module 2.8.0
K2 Tools
Site Module 2.8.0
K2 User
Site Module 2.8.0
K2 Users
Site Module 2.8.0
Multiple Extra Fields Groups for K2
Site Plugin 1.0.41
Search - K2
Site Plugin 2.8.0
Smart Search - K2
Site Plugin 2.8.0
System - K2
Site Plugin 2.8.0 August 18th, 2017 JoomlaWorks system 10003
System - K2MultiImages
Site Plugin 1.4.1 March 2016 Andrey Miasoedov system 10031
User - K2
Site Plugin 2.8.0 August 18th, 2017 JoomlaWorks
Third-party Extensions
AllVideos (plugin) Installed
Simple Image Gallery Pro (plugin) Not Installed
Template:
Joostrap
html>K2MultiImages
- admin_form.php
- category-slider-hs.php
- item-standard.php
- category-slider.php
- category-standard.php
- item-default.php
- item-fotorama.php
- item-slider-hs-grid-thumbs.php
- item-slider-hs-vertical-thumbs.php
- item-slider-hs.php
- item-slider.php
com_content > category
- portfolio.php
- portfolio.xml
- portfolio_children.php
- portfolio_item.php
Thanks
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 11 months ago #165669
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic DateTime::__construct(): Failed to parse time string (-1-11-
Ok, Can you try disabling Multiple Extra Fields Groups for K2 and K2MultiImages to see if the issue is resolved?
Furthermore can you try browsing the site using the default template?
Furthermore can you try browsing the site using the default template?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Eddie May
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
6 years 11 months ago #165676
by Eddie May
Replied by Eddie May on topic DateTime::__construct(): Failed to parse time string (-1-11-
Hi,
No joy I'm afraid. I did the following:
1) Disabled Multiple Extra Fields Groups for K2 and then K2MultiImages
2) Used Beez template while above extensions disabled
3) Flushed all caches after each change
4) Also tried another template based on Helix
The only difference was that with Beez I got a page not found but also the same error message was output. But that's probably due to Beez having a better error page?
No joy I'm afraid. I did the following:
1) Disabled Multiple Extra Fields Groups for K2 and then K2MultiImages
2) Used Beez template while above extensions disabled
3) Flushed all caches after each change
4) Also tried another template based on Helix
The only difference was that with Beez I got a page not found but also the same error message was output. But that's probably due to Beez having a better error page?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 11 months ago #165716
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic DateTime::__construct(): Failed to parse time string (-1-11-
Are you using multiple date extrafields?
Can you try unpublishing them?
Can you try unpublishing them?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Eddie May
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
6 years 11 months ago #165754
by Eddie May
Replied by Eddie May on topic DateTime::__construct(): Failed to parse time string (-1-11-
Yes,
I have a extra field of Date type! Un-publishing it had the desired effect - the menu item now works as expected.
What's more puzzling is that this field was not mandatory, & most items didn't have any Date extra field populated?
Thanks once again - much appreciated.
I have a extra field of Date type! Un-publishing it had the desired effect - the menu item now works as expected.
What's more puzzling is that this field was not mandatory, & most items didn't have any Date extra field populated?
Thanks once again - much appreciated.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 11 months ago #165938
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic DateTime::__construct(): Failed to parse time string (-1-11-
Sorry for the late reply, you can track the issue's progress here: github.com/getk2/k2/issues/433
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- DateTime::__construct(): Failed to parse time string (-1-11-