Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Mobile Redirection Plugin Breaks GoogleBaseXML

  • 4FootyFans
  • 4FootyFans's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
4 years 6 months ago #3051 by 4FootyFans
Hello

I installed the attached plugin so that 'mobile visitors' are redirected to my 'mobile site'.

Unfortunately, it does not seem to get on with GoogleBaseXML component.

Switching error reporting to maximum reveals:

Fatal error: Call to undefined method JDocumentXml::addCustomTag() in /home/xxxx/public_html/plugins/system/mredirect/mredirect.php on line 29

Fatal error: Access to undeclared static property: JLoader::$classes in /home/xxxx/public_html/libraries/loader.php on line 195

This applies to both xml and text output.

If I disable the plugin the component runs correctly.

I am hoping you can assist with a fix.

Best

Eddie

File Attachment:

File Name: 4FootyFans.zip
File Size:4 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #3052 by boggler
It should be quite easy to fix this - the problem is that the plugin does not check what type of document is being output. Then it tries to call some functions that are only defined when the document is html - quite careless.

I have attached an edited version - this edits the mredirect.php file to test first of all if the format is xml or text, and to do nothing in that case. Hopefully it should fix the problem.

If it does not then it would be a good idea to contact the developer of this plugin, because it is likely to lead to problems with other document types, eg rss feeds. Joomla can output a lot of different document types, all would potentially be affected.
Attachments:
The following user(s) said Thank You: 4FootyFans

Please Log in or Create an account to join the conversation.

  • 4FootyFans
  • 4FootyFans's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
4 years 6 months ago #3053 by 4FootyFans
Replied by 4FootyFans on topic Mobile Redirection Plugin Breaks GoogleBaseXML
Thank you very much.

That worked a treat.

Best

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.228 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.