Llama Council Community

zOOM Gallery OpenSEF extension => Bugs => Topic started by: Lars H on July 31, 2006, 02:41:39 AM



Title: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Lars H on July 31, 2006, 02:41:39 AM
Hi

I get this error in zoom when using the extension:

Warning: ereg_replace(): REG_EMPTY in /public_html/components/com_zoom/sef_ext.php on line 322

Zoom and extension on my site:
http://www.rotaract.dk/fotoalbum/

Running:
Joomla! 1.0.10 Stable, Zoom ver 2.5.1 RC2, OpenSEF 2.0.0-RC5_SP2


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Darren996 on July 31, 2006, 03:01:36 AM
Hi Lars,

I think we're are both on different versions.  I just updated the sef_ext.php.  This is the same version I am using at www.sedonaview.com.

Thanks,
Darren


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Lars H on July 31, 2006, 11:33:46 AM
Hi Darran - Thanks for the fast reply!

I updated the ext file with the one I found on http://llamacouncil.org/component/option,com_smf/Itemid,52/topic,40.msg177/,#msg177

I get the same error - but it has moved to line 334  :huh:

- Lars


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Darren996 on July 31, 2006, 11:38:11 AM
Hi,

Okay great!  Now I know where to look.  I have an idea what it is and I will look at it when I get home tonight.  I am thinking that you don't have any replacement characters for urls in your OpenSEF configuration. 

Thanks,
Darren


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Darren996 on July 31, 2006, 03:46:37 PM
Hi Lars,

I think I fixed it.   :grin:  I updated the attachment in the original post. Give it a try.

Thanks,
Darren


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Lars H on July 31, 2006, 10:28:33 PM
Hi Darren

Thx for your interest in fixing this! Yes you are right - I dont have any replacements set up. Should I  ?  :azn: I uploaded version 0.12 A - however it still reports back with the same error - this time line 341.

http://www.rotaract.dk/index.php?option=com_zoom&Itemid=46&catid=3


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Darren996 on August 01, 2006, 02:12:24 AM
The one thing I didn't change.   :rolleyes:

Should be fixed in 0.13A.

Thanks for you patience.

Darren


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Lars H on August 01, 2006, 05:50:48 AM
 :cheesy: Works like a charm!

Thx for your help - And your patience!

I will play around with it for a while and do some further testing! ;o)

Cheers!

- Lars


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Darren996 on August 01, 2006, 05:57:02 AM
No problemo.  :cool:

I am thinking that you'll either have to change your gallery names or encode the '/' character. I think the galleries with names like '2004/2005' are confusing the extension. 

Looks like there is some other problem too.  I don't see any pictures in the other galleries but it says there is media there.  :huh:

Thanks,
Darren


Title: Re: Warning: ereg_replace(): REG_EMPTY - Line 322
Post by: Lars H on August 01, 2006, 06:29:23 AM
yup - I'll have a look at the gallery names and play with it a bit to get the best result.

You probably can't see any images as they only are for registrered users at the moment. As you can see I'm using the zoom module on the front page - and tried to avoid certain images (the less serious ones) being showed on the front page by making them for registred users only. That didn't work though as they still show on the front page! Have to look for a solution to that problem too!  :wink:

Well - thx for your help - I give you an update when I finished sorting the galleries!

- Lars