select/vocabulary and split () in select.php line 108

A place for users and developers of the Xataface to discuss and receive support.

select/vocabulary and split () in select.php line 108

Postby carlof » Sat Oct 22, 2011 7:29 am

Hello All,

I am a simple occasional user of xataface. I've just received a bunch or error/warning message if I try to use the select widget on an enum field defining a vocabulary in the valuelists.ini. I am following the basic initial tutorials.

IN doing so, I miserably failed to have the select working. THe message (enabled reading the troubles-shooting section on this website) said something like 'split() in ..../select.php line 108 is deprecated since php 5.3'. Other web search and I found in php.net that they suggest a possible substitution of split() with explode() or preg_split() or str_split(). Well I tried all of them and the explode() seems to work (strangely enough).

I don't know if this is ok or not. Also I am uncomfortable that I edited directly this select.php file in the xataface directory. It doesn't look right for me to mess about with the code directory instead of limiting myself to my little application directory. But What else should I have done?

Or I did right?

Best regards,

Carlo
carlof
 
Posts: 12
Joined: Thu Oct 02, 2008 8:51 am

Re: select/vocabulary and split () in select.php line 108

Postby shannah » Sat Oct 22, 2011 10:52 am

This is fixed in SVN. Here is the bug report:
http://bugs.weblite.ca/view.php?id=809
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: select/vocabulary and split () in select.php line 108

Postby carlof » Mon Oct 24, 2011 3:40 am

Hello Steve,

I registered also on the weblite.ca site and accessed the link you provided. Yet, I don't know how to access the SVN repository and get the amended select.php file. With the explode() seems to work as a temporary solution. When then there will be the next release with the right select.php, I'll use it.

Thank you for your assistance and Xataface.

Best regards,

Carlo
carlof
 
Posts: 12
Joined: Thu Oct 02, 2008 8:51 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 15 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved