PHP 7.1 breaks the All Weblinks plugin 5.0.5.

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
pintobuck
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Mar 06, 2007 9:39 am

PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by pintobuck » Tue Oct 30, 2018 2:39 pm

Using Joomla 3.9, PHP 7.0.3, AllWeblinks 5.04 plugin.

Upgrading to PHP 7.1 breaks the Joomla "All Weblinks" plugin. Joomla front page goes blank showing only the word "error."

(Upgrade to PHP 7.1 is necessary because PHP 7.0 is being discontinued.)

After I turn on Joomla error reporting:
Front page says: Error: Using $this when not in object context: Using $this when not in object context

Joomla backend administration says:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentAllWeblinks has a deprecated constructor in /public_html/plugins/content/allweblinks/allweblinks.php on line 20

The All Weblinks plugin is must have for one of my sites, because it is the most efficient/only way that I could sort and display hundreds of weblinks inside of article pages.

I did not find a way to contact the plugin creator, and I did not want to use Joomla Extension Review to post a bug problem.

I am so not a programmer.
Any suggestions? Thank you.

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2019
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by JAVesey » Tue Oct 30, 2018 3:22 pm

The latest version (v5.0.5) is available here:
http://joomlacode.org/gf/project/allweblinks/frs/

Try it?

The support Forum is here:
http://joomlacode.org/gf/project/allweblinks/forum/
John V
Cardiff, Wales, UK
Uses Joomla 3.9.8

pintobuck
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Mar 06, 2007 9:39 am

Re: PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by pintobuck » Fri Dec 07, 2018 3:20 pm

Thanks for the info JAVesey. Update: I posted the issue on the JoomlaCode forum in October 2018, but no answer yet. I see that other people have posted the same issue about All Weblinks plugin 5.05 and PHP 7.1. -- I downloaded the latest version of All Weblinks, but the problem persists. I'm wondering if I should try to hire a programmer to update All Weblinks plugin for PHP 7.1.

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1567
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by SharkyKZ » Fri Dec 07, 2018 7:18 pm

Works for me on PHP 7.2. Enable system debug in Global Configuration and go to the page where this error is shown:

Code: Select all

Error: Using $this when not in object context
You should see where it's coming from.

pintobuck
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Mar 06, 2007 9:39 am

(solved) Re: PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by pintobuck » Sat Dec 08, 2018 3:12 pm

Thanks again. That helped a lot to know that All Weblinks was working with PHP 7.2 I found out that I was blaming the wrong extension. It was not All Weblinks fault. All Weblinks just happened to be the extension I was working with when I noticed the problem.

I went through my website and disabled each extension one at a time until I found the extension that would not work with PHP 7.1. The extension which downed my whole site was SWmenu. It's an older extension, but I have been wedded to it because it displays my entire custom menu. I will just have to use a newer custom menu system.

iberan
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Nov 12, 2015 3:20 pm

Re: (solved) PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by iberan » Sun Dec 16, 2018 5:55 pm

In /plugins/content/allweblinks/allweblinks.php #55 comment this line

Code: Select all

//function plgContentAllWeblinks( &$subject, $params )
and enter this instead:

Code: Select all

public function __construct(&$subject, $params)

pintobuck
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Mar 06, 2007 9:39 am

Re: PHP 7.1 breaks the All Weblinks plugin 5.0.5.

Post by pintobuck » Sat Dec 29, 2018 2:48 pm

Thank you very much.


Post Reply

Return to “Extensions for Joomla! 3.x”