No Add buttons appear (even with cache disabled)

More
1 year 4 months ago #1 by Jason
Hi Christopher,
I'm working on a development site for my existing website to upgrade from Joomla 3 to 4 and have installed the latest version but the ADD buttons do not appear in the module. The debug doesn't help me. I tried turning off anything that might be caching the pages, turned debug on in both Joomla and the module and set error reporting to Maximum. Nothing gives me any help to work out why it won't work.
I have a community builder site and I need it for my visitors to be able to make a list of favourite users.
Are you able to assist?

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 4 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic No Add buttons appear (even with cache disabled)
Hello Jason and thank you for posting.

There is a number of reasons why a module may not show an add button.

First of all, the add button only appears on pages that can be added to the list. That is, compatible components on their single item page.
Moreover, in the Module tab, there's an option on whether you only want to show the list or also the Add button.

It's been years since I last tested Community Builder, so there's a chance they have changed their extension's structure and we would need to update that.
Currently, the expected non-SEO URL is index.php?option=com_comprofiler&task=userprofile&user=1. If SEO is enabled, perhaps you won't be able to tell if the URL is like that.
The Debug interface can tell you the recognized AID under the subtitle "Component Details".
If the AID is -1, then the page is not recognized and we need to update the expected structure.
If the AID is #cb#1 where 1 is the ID of the currently visible user page, then the module correctly identifies the page but doesn't display the button for another reason.

Let me know if any of that helps.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

More
1 year 4 months ago #3 by Jason
Thanks Christopher,
That was very helpful. Hasn't solved it yet but we are getting close.
I discovered that the ADD button was appearing on a few profiles. I have over 3,000 profiles and almost none are showing the ADD button. I have 4SEF component from which I have imported the SEF URL's from the existing site. Most profiles have multiple non-sef URLs to choose from but the one 4SEF is using does not show the ADD button. I tried selecting a different non-sef URL for a single profile and the button appeared.
Then I turned of SEF extensions and found that the ADD button does not appear on any profiles. Seems like Community Builder is not working nicely with MyShortlist and the only way to get it to work is by selecting one of the old non-sef URLs from the previous site. That's not practical because I would need to manually do that 3,000 times.
The debug is showing this (among a lot of other things):

AID: -1
Enabled Components: array(2) { [0]=> string(2) "cb" [1]=> string(2) "ml" }
Option: com_comprofiler
View: userprofile
Layout:
Task:
Classic ID: -1

I guess that means it's not compatible?

Also, one other thing... Community Builder seems to have recently been updated because it is showing a couple of messages:
Community Builder will no longer be compatible with PHP 7.4.33.
Community Builder will no longer be compatible with MySQL 5.7.44.

Not sure if that is the problem. I'm still working through a mountain of jobs to get this development site sorted and haven't got around to those issues yet.

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 4 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic No Add buttons appear (even with cache disabled)
Hi again Jason,

It seems that CommunityBuilder has indeed been updated.
Instead of having task=userprofile, I can see from your Debug Information that it's now view=userprofile.
Just send me the installation zip file for CommunityBuilder at me@mavxr.com and I'll update compatibility.
I believe you won't need to do anything else, then.

Thanks again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

More
1 year 4 months ago #5 by Jason
Thanks for looking into it Christopher.
I just sent you the latest Community Builder zip file but I got a bounce back from the email address you provided. But you can download it yourself from the Joomlapolis website. It's a free download.

Cheers

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 3 months ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic No Add buttons appear (even with cache disabled)
Thank you Jason.

I just fixed compatibility with CommunityBuilder and sent you the updated file to your email via WeTransfer.

The Avatar still requires the paid CB Content Bot addon, so if you need to change that, you can make a template override of the cb_item.php file, or let me know.
Thanks again!

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

Moderators: Christopher Mavros