Welcome, Guest
Username Password: Remember me

PHP errors showing with TeraWurfl plugin
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: PHP errors showing with TeraWurfl plugin

PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4525

  • atarr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
If I turn off caching in the TeraWurfl plugin, I get the following error:

Notice: Undefined offset: 0 in /web/umatterucanhelp.com/www_gethelp/plugins/mobile/terawurfl/TeraWurfl.php on line 333

If I enable it, I get this error:

Notice: Undefined index: id in /web/umatterucanhelp.com/www_gethelp/plugins/mobile/terawurfl/TeraWurfl.php on line 293

I'm only getting these errors in Firefox. They aren't showing in Safari, Chrome or IE.

I also did a fresh install on a local machine in a fresh install of J1.5 and got the same results.

Thanks,
Andy
Last Edit: 5 years, 3 months ago by atarr.

Re: PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4526

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4673
  • Karma: 102
Which option for "Force to use mysql4-compatible version" do you use?

Second issue most likely means that TeraWURFL's cache is corrupted, so you should remove all the entries from #__TeraWurflCache table.

Re: PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4527

  • atarr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
We're on mysql 5.1, so we are using the mysql5 compat version

I'll try emptying the terawurfl cache table and see if that helps.

Thanks!

Andy

Re: PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4529

  • atarr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I emptied the #__TeraWurflcache and I'm still getting the same errors.

The errors are just Notices. I don't have access to add a php.ini file to change the error reporting on the live site and the Joomla error_reporting at None isn't bypassing this error for some reason. I'll continue to work on getting the error surpressed at that level, though.

Andy

Re: PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4530

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4673
  • Karma: 102
Check that procedure jos_TeraWurfl_FallBackDevices exists in database.
As a workaround you can use mysql4 mode in terawurfl plugin settings.

Re: PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4531

  • atarr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
The procedure does exist, so that's not the problem.

Changing to force to mysql4 works.

Thanks!
Andy

Re: PHP errors showing with TeraWurfl plugin 5 years, 3 months ago #4533

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4673
  • Karma: 102
The first issue means that jos_TeraWurfl_FallBackDevices procedure returned no records. Then the only reason of it is incorrect WurflID parameter. Most likely this ID is "generic_web_browser" because of "SimpleDesktop Matching Engine". Corresponding entry in WURFL database is of DO_NOT_MATCH-type, so maybe this fact lead to abovementioned issue. To check it try to set
	public static $SIMPLE_DESKTOP_ENGINE_ENABLE = false;
in plugins/mobile/terawurfl/terawurfl/TeraWurflConfig.php

Re: PHP errors showing with TeraWurfl plugin 4 years, 3 months ago #9878

I was having the same issue with the "Undefined offset" error message. I checked my Joomla server configuration and found that error reporting was set to Maximum. When I changed it to "Simple" the error disappeared.

Wanting to solve the problem rather than mask it, however, I set it back to "Maximum" and then made the change recommended above, changing "public static $SIMPLE_DESKTOP_ENGINE_ENABLE" to "false". Even with error reporting set back to "Maximum", this solved the problem.
  • Page:
  • 1
Time to create page: 0.40 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.