AbanteCart Community

Shopping Cart Operations => Support => Topic started by: popustda on April 27, 2014, 11:54:21 AM

Title: error log latest
Post by: popustda on April 27, 2014, 11:54:21 AM
Hi guys,
Can anyone tell me what is this error message related to?

"
2014-04-27 14:16:56 - warning:  AbanteCart core v.1.1.7 preg_grep() [<a href='function.preg-grep'>function.preg-grep</a>]: Compilation failed: nothing to repeat at offset 0 in <b>/home/topducan/public_html/core/engine/language.php</b> on line <b>253</b>
"

Thanks
Title: Re: error log latest
Post by: denagpam on April 27, 2014, 12:04:41 PM
when did you get this error ?
Title: Re: error log latest
Post by: popustda on April 27, 2014, 12:23:25 PM
today in a period of 1minute i have 50 of these messages one after another and i have no clue why?
Title: Re: error log latest
Post by: gordontaylor on April 27, 2014, 12:50:57 PM
Were you doing anything at the time with your backend? That is a error from the core files.
Title: Re: error log latest
Post by: abantecart on April 27, 2014, 03:49:57 PM
This would happen with some strange value of browser language coming from the the browser. I am interested to know what browser and language you use.

Title: Re: error log latest
Post by: popustda on April 28, 2014, 06:45:00 AM
i use Chrome version 34.0.1847.116 m
i use croatian language
Title: Re: error log latest
Post by: abolabo on April 28, 2014, 09:43:38 AM
Quote from: popustda on April 27, 2014, 11:54:21 AM
Hi guys,
Can anyone tell me what is this error message related to?

"
2014-04-27 14:16:56 - warning:  AbanteCart core v.1.1.7 preg_grep() [<a href='function.preg-grep'>function.preg-grep</a>]: Compilation failed: nothing to repeat at offset 0 in <b>/home/topducan/public_html/core/engine/language.php</b> on line <b>253</b>
"

Thanks

Do you have language in your localisation settings with empty "locale" field?
Title: Re: error log latest
Post by: popustda on April 28, 2014, 11:52:42 AM
not really. please check a pic
Title: Re: error log latest
Post by: abolabo on April 28, 2014, 01:26:49 PM
can you replace file core/engine/language.php
by attached and let me know about result
Title: Re: error log latest
Post by: popustda on April 29, 2014, 07:44:02 AM
this helped with that problem but now i cant translate anything anymore.
Please check what error i get when i try to translate anything

thanks
Title: Re: error log latest
Post by: abolabo on April 30, 2014, 04:28:12 AM
Quote from: popustda on April 29, 2014, 07:44:02 AM
this helped with that problem but now i cant translate anything anymore.
Please check what error i get when i try to translate anything

thanks

looks like bug that we already fixed in 1.1.8.
you can try to replace files
public_html/admin/model/localisation/language_definitions.php (https://github.com/abantecart/abantecart-src/blob/master/public_html/admin/model/localisation/language_definitions.php)
and public_html/core/lib/language_manager.php (https://github.com/abantecart/abantecart-src/blob/master/public_html/core/lib/layout_manager.php)
from our git repository
.. or just upgrade your cart up to 1.1.8
Title: Re: error log latest
Post by: popustda on April 30, 2014, 03:41:05 PM
i have upgraded and its ok now.

thanks