[Skip to main content](#vessel-content)

#   live site Date Field problem???

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 6 months ago [\#102298](#102298) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[live site Date Field problem???](/forum/2-general-talk-about-hikashop/81379-live-site-date-field-problem#102298 "I have a 'script disfunction' in the live version of my site which is not happening at my localhost version  I think it has to do with the Date field. This is what I get:  Warning: preg&#95;split() &#91;function.preg-split&#93;: Compilation failed: missing terminating &#93; for character class at offset 2 in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  Warning: Invalid argument supplied for foreach() in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  This is the server info for the live site  PHP Built On Linux gibraltar.directrouter.com 2.6.32-279.19.1.el6.x86&#95;64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86&#95;64 Database Version 5.1.68-cll Database Collation utf8&#95;general&#95;ci PHP Version 5.3.22 Web Server Apache WebServer to PHP Interface cgi-fcgi Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT  and this for the local system  PHP Built On Darwin Database Version 5.1.44 Database Collation utf8&#95;general&#95;ci PHP Version 5.3.2 Web Server Apache WebServer to PHP Interface apache2handler Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10&#95;8&#95;3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

I have a 'script disfunction' in the live version of my site which is not happening at my localhost version

I think it has to do with the Date field. This is what I get:

Warning: preg_split() [function.preg-split]: Compilation failed: missing terminating ] for character class at offset 2 in /home/acticar/public_html/administrator/components/com_hikashop/classes/field.php on line 1872

Warning: Invalid argument supplied for foreach() in /home/acticar/public_html/administrator/components/com_hikashop/classes/field.php on line 1872

[ ![Captura&#95;de&#95;pantalla&#95;2013-05-04&#95;a&#95;les&#95;20&#95;40&#95;23.png](/forum/attachment/9975) ](/forum/attachment/9975 "...s&#95;20&#95;40&#95;23.png")

**This is the server info for the live site**

PHP Built On Linux gibraltar.directrouter.com 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64
Database Version 5.1.68-cll
Database Collation utf8_general_ci
PHP Version 5.3.22
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 2.5.9 Stable [ Ember ] 4-February-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

**and this for the local system**
PHP Built On Darwin
Database Version 5.1.44
Database Collation utf8_general_ci
PHP Version 5.3.2
Web Server Apache
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 2.5.9 Stable [ Ember ] 4-February-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13

- [ ![Captura&#95;de&#95;pantalla&#95;2013-05-04&#95;a&#95;les&#95;20&#95;40&#95;23.png](/forum/attachment/9975) ](/forum/attachment/9975 "...s&#95;20&#95;40&#95;23.png") [ ](/forum/attachment/9975?download=1 "...s&#95;20&#95;40&#95;23.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxMzc5LWxpdmUtc2l0ZS1kYXRlLWZpZWxkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#102316](#102316) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[live site Date Field problem???](/forum/2-general-talk-about-hikashop/81379-live-site-date-field-problem#102316 "I have a 'script disfunction' in the live version of my site which is not happening at my localhost version  I think it has to do with the Date field. This is what I get:  Warning: preg&#95;split() &#91;function.preg-split&#93;: Compilation failed: missing terminating &#93; for character class at offset 2 in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  Warning: Invalid argument supplied for foreach() in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  This is the server info for the live site  PHP Built On Linux gibraltar.directrouter.com 2.6.32-279.19.1.el6.x86&#95;64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86&#95;64 Database Version 5.1.68-cll Database Collation utf8&#95;general&#95;ci PHP Version 5.3.22 Web Server Apache WebServer to PHP Interface cgi-fcgi Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT  and this for the local system  PHP Built On Darwin Database Version 5.1.44 Database Collation utf8&#95;general&#95;ci PHP Version 5.3.2 Web Server Apache WebServer to PHP Interface apache2handler Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10&#95;8&#95;3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13")*

Hi,

Which format do you use in your "date custom field" configuration ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxMzc5LWxpdmUtc2l0ZS1kYXRlLWZpZWxkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 6 months ago [\#102319](#102319) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[live site Date Field problem???](/forum/2-general-talk-about-hikashop/81379-live-site-date-field-problem#102319 "I have a 'script disfunction' in the live version of my site which is not happening at my localhost version  I think it has to do with the Date field. This is what I get:  Warning: preg&#95;split() &#91;function.preg-split&#93;: Compilation failed: missing terminating &#93; for character class at offset 2 in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  Warning: Invalid argument supplied for foreach() in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  This is the server info for the live site  PHP Built On Linux gibraltar.directrouter.com 2.6.32-279.19.1.el6.x86&#95;64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86&#95;64 Database Version 5.1.68-cll Database Collation utf8&#95;general&#95;ci PHP Version 5.3.22 Web Server Apache WebServer to PHP Interface cgi-fcgi Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT  and this for the local system  PHP Built On Darwin Database Version 5.1.44 Database Collation utf8&#95;general&#95;ci PHP Version 5.3.2 Web Server Apache WebServer to PHP Interface apache2handler Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10&#95;8&#95;3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13")*

The best I can tell you to answer this is this screenshot:

[ ![Captura&#95;de&#95;pantalla&#95;2013-05-05&#95;a&#95;les&#95;2&#95;37&#95;22.png](/forum/attachment/9980) ](/forum/attachment/9980 "...es&#95;2&#95;37&#95;22.png")

- [ ![Captura&#95;de&#95;pantalla&#95;2013-05-05&#95;a&#95;les&#95;2&#95;37&#95;22.png](/forum/attachment/9980) ](/forum/attachment/9980 "...es&#95;2&#95;37&#95;22.png") [ ](/forum/attachment/9980?download=1 "...es&#95;2&#95;37&#95;22.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxMzc5LWxpdmUtc2l0ZS1kYXRlLWZpZWxkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#102327](#102327) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[live site Date Field problem???](/forum/2-general-talk-about-hikashop/81379-live-site-date-field-problem#102327 "I have a 'script disfunction' in the live version of my site which is not happening at my localhost version  I think it has to do with the Date field. This is what I get:  Warning: preg&#95;split() &#91;function.preg-split&#93;: Compilation failed: missing terminating &#93; for character class at offset 2 in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  Warning: Invalid argument supplied for foreach() in /home/acticar/public&#95;html/administrator/components/com&#95;hikashop/classes/field.php on line 1872  This is the server info for the live site  PHP Built On Linux gibraltar.directrouter.com 2.6.32-279.19.1.el6.x86&#95;64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86&#95;64 Database Version 5.1.68-cll Database Collation utf8&#95;general&#95;ci PHP Version 5.3.22 Web Server Apache WebServer to PHP Interface cgi-fcgi Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT  and this for the local system  PHP Built On Darwin Database Version 5.1.44 Database Collation utf8&#95;general&#95;ci PHP Version 5.3.2 Web Server Apache WebServer to PHP Interface apache2handler Joomla! Version Joomla! 2.5.9 Stable &#91; Ember &#93; 4-February-2013 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable &#91; Brian Kernighan &#93; 03-Jan-2012 00:00 GMT User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10&#95;8&#95;3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13")*

Hi,

You can use "%Y" instead, "YYYY" is not a valid date format.
But if you just want a year selection, you should use a drop down list instead of a "date".
The date format with just "%Y" will not create valid date for the checking algorithm.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxMzc5LWxpdmUtc2l0ZS1kYXRlLWZpZWxkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
