Skip to main content

live site Date Field problem???

More
13 years 4 months ago #102298 by PeterChain
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



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

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #102316 by Jerome
Hi,

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

Regards,

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

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #102319 by PeterChain
The best I can tell you to answer this is this screenshot:


Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #102327 by Jerome
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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: PeterChain

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds
Powered by Kunena Forum