Xaraya error in module configuration
maravizzo
Joined: 2005-09-11
Posts: 49 |
Posted: Tue, 2005-09-20 16:22 |
Hi, System Error This is the line 51 of updateconfig.php: In my case xaraya is in Document Root: www.domain.com/index.php. G2 is installed in www.domain.com/gallery2/main.php. The relative path I type is "gallery2/" Any idea of what's wrong? |
|
Posts: 32509
hmm, weird. never seen this before and never seen a regexp expression break on one install and not on all.
never seen a mb_ereg error/notice either. mb is for multibyte characters. obviously it uses mb_ functions instead of normal ereg functions in your case.
but obviously, you're not the first user to have a problem with the mb_ functions:
http://www.google.com/search?hl=en&q=mb_ereg_replace%28%29%3A+mbregex+compile+err%3A&btnG=Google+Search
maybe if i use preg_ instead of ereg_, it will work. oh wait, i don't need regexp here:
try replacing:
$g2RelativeUrl = trim(ereg_replace("[\]", "//", $path['g2-relative-url']));
with$g2RelativeUrl = trim(str_replace('\', '/', $path['g2-relative-url']));
and let me know if it worksPosts: 32509
wait, better replace the whole section with:
Posts: 49
Thank you very much valiant!
I don't know what preg_ and ereg_ are at all, but with your replacement everything works perfectly
Ciao
Matteo
Posts: 32509
thanks for letting me know. now in cvs.