Welcome, Guest
Username Password: Remember me

mobile joomla 1.2.3 and simple.php file
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: mobile joomla 1.2.3 and simple.php file

mobile joomla 1.2.3 and simple.php file 7 years, 4 months ago #13453

  • LDSNZ
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
In the hope this can help if some of you encountered the problem below.

I installed the updated version of mobile Joomla (1.2.3)
There was then an issue described as followed (impossibility to reach the component on back office, and all the front office website was corrupted then:)
Call-time pass-by-reference has been removed in /...../...../...../...../plugins/mobile/simple.php on line 225

So I opened the file and this line says originally :
line 224 if(strpos($ua, ' resolution\\') !== false
line 225 && preg_match('# resolution\\(\d{3})(\d{3})\b#', $ua, &$matches))

I changed it like that and everything is working fine and back to normal.

line 224 if(strpos($ua, ' resolution\\') !== false
line 225 && preg_match('# resolution\\(\d{3})(\d{3})\b#', $ua, $matches))

P.S : I'm totally not an expert, so and I don't even know the reason why deleting "&" in front of "$matches" made everything back to normal. In the hope that it hasn't created a new bug that I haven't seen yet, please if you encounter the same problem, post your solution here. If I see a change in the behaviour of the component, I'll come and rewrite a post, for this issue to be followed and fully understood. Anyone who is willing to give any explanation is welcome of course.

Thanks for your support. I've found many useful advices on this forum, thanks to the Mobile Joomla team, and the members. I hope this post might be helpful too.
Last Edit: 7 years, 4 months ago by LDSNZ.

Re: mobile joomla 1.2.3 and simple.php file 7 years, 4 months ago #13454

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4816
  • Karma: 105
Thanks for report. We have updated the MJ package.

PS. Actually this issue was fixed in local repository (that's why there was no warnings in tests), but it wasn't comitted to global repository for total package building.

Re: mobile joomla 1.2.3 and simple.php file 7 years, 4 months ago #13458

  • LDSNZ
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Roger that. I guess the topic is closed then.

^^
  • Page:
  • 1
Time to create page: 0.09 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.