joomla-extensions / weblinks

This repo is meant to hold the decoupled com_weblinks component and related code.
GNU General Public License v2.0
45 stars 88 forks source link

Web Links shows 'Undefined variable $userId' above every link #545

Closed jrmain closed 10 months ago

jrmain commented 10 months ago

Steps to reproduce the issue

  1. Upgrade Joomla site with Web Links from 3.x to 4.4.0.
  2. Navigate to Web Links on web site.
  3. Select a category to list links in that category.

Expected result

  1. Links are listed, with their descriptions, and work.
  2. No errors or warnings are displayed.

Actual result

  1. Links are listed, with their descriptions, and work.
  2. However, above every link I see this:
Warning: Undefined variable $userId in
/var/www/sitepath/components/com_weblinks/tmpl/category/default_items.php
on line 87

System information (as much as possible)

Ubuntu Linux 18.04.6 Apache PHP 8.0.29

Additional comments

Web Links were working fine on the Joomla 3. site.

alikon commented 10 months ago

what weblink version ? it should be the lateset one 4.3.1

jrmain commented 10 months ago

Yes, it's 4.3.1. There's a Site package, a Site module, an Admin component, and three search-related Site plugins.

joomdonation commented 10 months ago

This should be fixed by this commit https://github.com/joomla-extensions/weblinks/commit/6749120fbff34cd9b6899fc5c63b4aaa38815806 and will be included in next release. For the time being, you can install this updated package of Weblinks to your site and the issue will be sorted.

pkg-weblinks-4.3.1.zip

jrmain commented 10 months ago

Installed the package provided, and that fixed the problem. Thanks!

joomdonation commented 10 months ago

Thanks for confirming @jrmain. I'm closing this issue.