Page 1 of 2

Probably a mobile phone OS problem [FIXED in 3.0.169]

Posted: Sat Feb 19, 2011 1:13 pm
by Bifford
Hello,

Using the latest version of AG, on gallery page of http://www.seaxeandsorcery.co.uk/

I am fairly certain this problem is due to using my phone, a Samsung Wave, which uses Bada OS.

I get the following error a dozen or so times in a list. The "2" changes between a 2 and "c" on different lines:

Warning: preg-match() [function: preg_match] : Unknown modifier "2" in ....../AdmirorGallery/Classes/agHelper.php on line 406

Folders show but I can not go into the folders yo see thumbnails.

Probably a mobile phone issue, but thought I'd report it in case it's fixable! :)

Thanks, Sam

Re: Probably a mobile phone OS problem

Posted: Sat Feb 19, 2011 1:29 pm
by Bifford
In addition, if I go to the "Live Action Role Play" page, which has images built straight into the page (no folders used) I get the same error appearing twice, BUT the popup system works so images can be viewed.

So to restate: on my bada os phone I get that error anywhere AG is used, more so where Folders are used. And I can not access folders but images and popups themselves do work.

Thanks, Sam

Re: Probably a mobile phone OS problem

Posted: Mon Feb 21, 2011 10:56 am
by kekeljevic
It's interesting... Joomla is PHP based, which is a server technology, it should be client independent, so it shouldn't have anything with BadaOS. You say that You got this preg-match error only on Phone, but not on standard Screen... Do You have some different template used if visitor using a Phone?

Re: Probably a mobile phone OS problem

Posted: Mon Feb 21, 2011 11:00 am
by kekeljevic
All those swords, arrows, beer and sexy elven girls... You are a lucky guy ;-)

Re: Probably a mobile phone OS problem

Posted: Mon Feb 21, 2011 11:24 am
by Bifford
kekeljevic wrote:It's interesting... Joomla is PHP based, which is a server technology, it should be client independent, so it shouldn't have anything with BadaOS. You say that You got this preg-match error only on Phone, but not on standard Screen... Do You have some different template used if visitor using a Phone?
That's correct, and I wouldn't know how to make the template work differently for phones! lol.

I've just gone back to the site using the phone and when I initially go to the Gallery page there are no error lines above, however when I click on a Folder it throws up the dozen errors (however this time it Did access into the gallery and bring up the images, which it would not do before!)

So I can fairly safely say it's a folder error. And yeah, it only happens on the phone.

Thanks.
Sam

Re: Probably a mobile phone OS problem

Posted: Tue Feb 22, 2011 9:57 am
by kekeljevic
Currently I'm on WIFI with proxy, so I can't goes on a web using Phone, but I'll check it latter to see which errors appears.

If You are curious how to make different template for phones I could send You some code I found.

Re: Probably a mobile phone OS problem

Posted: Wed Feb 23, 2011 1:25 pm
by xenio
I am also getting the error...

Warning: preg_match() [function.preg-match]: Unknown modifier '2' in /home/surfart1/public_html/plugins/content/AdmirorGallery/classes/agHelper.php on line 406
Warning: preg_match() [function.preg-match]: Unknown modifier 'c' in /home/surfart1/public_html/plugins/content/AdmirorGallery/classes/agHelper.php on line 406

I am using Firefox but it also show error with Chrome
Plugin 2.1.155
Component 1.8

the website is:
http://www.surfartganadu.com
and sometime this happens to this site too:
http://www.ganaduart.com

sometime this error disappears without reason.

I don't know where to look.
Any help
Thanks
Xenio

Re: Probably a mobile phone OS problem

Posted: Wed Feb 23, 2011 2:53 pm
by kekeljevic
@xenio
It's an honor to see AG on site like http://www.ganaduart.com . Great site, with amazing artwork...

Vasiljevski has found what the issue is. We will found some solution for this soon, thanks for reporting it.

Re: Probably a mobile phone OS problem

Posted: Wed Feb 23, 2011 9:26 pm
by Bifford
I'm curious - what was the problem? And i found the problem cause I was bored at work so thank goodness for free internet on phones! :D hehe

Sam / Bifford

Re: Probably a mobile phone OS problem

Posted: Thu Feb 24, 2011 10:29 am
by kekeljevic
We have a part of code in Error Detection System which isn't well written. One preg_match inside of it cause the problem, as You could see in error output. I'm not really sure why, but we detected where to look and what's needed to be redone.