Fatal error (cannot unset string offsets) in your script

Popular automatic website translation tool

Fatal error (cannot unset string offsets) in your script

Postby roderik » Tue Jan 28, 2014 6:35 pm

The following page is correctly parsed by GTranslate:

http://vivere-e-gustare.com/de/vakantiehuizen

The 'filter' links on that page produce a white screen with only an error message (i.e. that's your script throwing an error, as far as I see):

Fatal error: Cannot unset String-Offsets on-line 515

example which gives this error (first checkbox in left sidebar on above page):
http://vivere-e-gustare.com/de/vakantiehuizen?f[0]=field_zwembad%3AJa

FYI:
- PHP version: 5.3.17
- despite the checkboxes in the 'filter' these are simple GET URLS
- The above URL arguments may look funny at first sight, but this is a common URL for "exposed filters" in Drupal. (f[0] = field_zwembad = Ja , which is Dutch for Yes )
roderik
 
Posts: 3
Joined: Wed Apr 03, 2013 3:45 am

Re: Fatal error (cannot unset string offsets) in your script

Postby Yana » Tue Jan 28, 2014 9:56 pm

Hi,

Thank you for your post . We will check it and contact you soon.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Fatal error (cannot unset string offsets) in your script

Postby Edvard » Wed Jan 29, 2014 2:10 am

Hi,

We have checked and we do not support arguments passed by array in the URLs like f[0], f[1], etc...

We can offer you to upgrade your Pro license to Enterprise and as a courtesy we will do it for free for the first year.

Just let us know.

If you want to stick with Pro version you will need to modify Search API ranges module which is a custom module to change the format of parameters from arrays into strings. For example you may pass the parameters separated by "|". For example instead of f[0]=a&f[1]=b... you can have f=a|b...

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux