Loading

Errors at backend

13 posts / 0 new
Last post
Anonymous
Errors at backend

Hello, i have 2 problems. 1. Warning: json_encode() [function.json-encode]: Invalid UTF-8 sequence in argument in /var/www/vhosts/etakom.lt/httpdocs/library/Zend/Json.php on line 146
2. Product sku must be unique value
Maybe someone could help me?

Offline
Joined: 10/12/2010

We had some request with similar error and the problem was in enabled php magic_quotes.

Please disable it on your server or use this fix: http://axiscommerce.com/forum/php-magic-quotes#comment-5445

Offline
Joined: 10/12/2010

Sorry. It's not the same error. You have invalid multibyte message.

Can you try to uncomment the following line in AXIS_ROOT/.htaccess file ~99?

    AddDefaultCharset utf-8

Moe (not verified)

Warning: json_encode() [function.json-encode]: Invalid UTF-8 sequence in argument in /var/www/vhosts/etakom.lt/httpdocs/library/Zend/Json.php on line 146

... thanks, but same problem..

Moe (not verified)

#AddDefaultCharset utf-8
this one? What i need to do?

Offline
Joined: 10/12/2010

Remove # symbol.

Offline
Joined: 10/12/2010

One more possible fix:

Open AXIS_ROOT/index.php and add the following line

Zend_Json::$useBuiltinEncoderDecoder = true;

after this line (~77)

$application = new Axis_Application(APPLICATION_ENV, $bootstrapConfig);

If this will not help, one more option:

Open library/Zend/Json.php and add the following line

$valueToEncode = utf8_encode($valueToEncode);

after (~145)

if (function_exists('json_encode') && self::$useBuiltinEncoderDecoder !== true) {

Moe (not verified)

Zend_Json::$useBuiltinEncoderDecoder = true;
This one place into ~26 line? After comment text and before first "if" ?

Offline
Joined: 10/12/2010

**
after this line (~77)

$application = new Axis_Application(APPLICATION_ENV, $bootstrapConfig);
**

Moe (not verified)

oh, sorry i didnt see, thank you very much, now its showing configuration folders as well. Thanks

Moe (not verified)

Notice: Uninitialized string offset: 13 in /var/www/vhosts/etakom.lt/httpdocs/library/Zend/Json/Encoder.php on line 479
Now new error..