Search
Other Articles Anywhere questions
Forum

Php version affecting Articles Anywhere?

Patricia Lawson's Avatar Patricia Lawson
Hello,
I am running Articles Anywhere 16.2.0 on Joomla 5.2.3

I took a backup of the site I have developing on my local machine (localhost, a windows machine running XAMPP 8.1.25) and loaded it onto our GCP virtual machine (running ubuntu linux and php 8.3.14)

Articles Anywhere is not doing what I expect on the live site.
I am attaching an image of the page and the output from Inspect that I see for each deployment. Could the problem be the php version?

drive.google.com/file/d/1X-3azk2D1A9HOip...OWm/view?usp=sharing

The live site is help.thinkiq.com. The issue is under Release Notes.
Thanks!!
Patricia
Peter van Westen's Avatar Peter van Westen ADMIN
You are opening the {if} tag outside the div, and closing it inside. This will result in broken html (a lot of opening divs without closing them).

Make sure the opening tags of plugins, ifs, foreaches, etc are all on the same nested level.
Please post a rating at the Joomla! Extensions Directory
Patricia Lawson's Avatar Patricia Lawson
Hello Peter,
I did the fix you suggested, but it has not solved my problem.

I have done a lot of sleuthing and am almost certain the issue lies partially with Mysql.

My dev system runs Maria DB, and the functionality works there. I use Akeeba to deploy to production. If I deploy to systems running MySQL 8 the problem shows itself. I have tested this on a variety of environments (Google Cloud, SiteGround and Windows). On my dev system, I can change nothing other than which database is running: it always fails with MySQL and works with Maria DB. I have used both Akeeba and phpMyAdmin (import/export) to restore the database.

Restoring from my dev system to production is important and relevant to you because I used the dev system to upgrade the site from Joomla 3.10 to the current version of Joomla 5.

I would really appreciate your help. In anticipation of that, I have setup a dev environment for you on SiteGround and made Super User credentials for you. The url of the broken page is patricial63.sg-host.com/release-notes . Feel free to break/change anything you like.

Referring to the images I sent above, you normally would see one or more articles under each date. Clicking on the Release Date title goes to a page for the articles for that date.
You will see that some of the articles (with title New Features..) use 'Joomlashack Sliders and Tabs Pro'. For a while, I believed that their plugin was the problem. It is disabled on the system I have set up for you, but even with it disabled, the articles that make up the Release Notes do not show on the Release Notes page as they used to.

The reason why I suspected their plugin is because clicking on some links - for example, Aug 8, 2024 - would result in the error: 'WebAssetManager is locked, you came late'
This error only occurs when used inside the Articles Anywhere / Snippets plugin. On the home page you will a 'Test Slider Article' menu which works correctly when the plugin is enabled. If you are able to get the Release Notes working as designed, we would want to re-enable the slider plugin.


Confidential information:
(hidden)


A colleague suggests that the MySQL issue could be negatively affecting Joomla's WebAsset manager (the js & css scripts look very different in Page Source) which may be affecting your plugin. All of this is above my pay grade. 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
Can you also give me (s)ftp access so I can take a deeper look?
Please post a rating at the Joomla! Extensions Directory
Patricia Lawson's Avatar Patricia Lawson
As requested:
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
What do you mean with "The one you set up for this account"?
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
I also do not understand what you are trying to do with the title="!this:id" filter.
That says: the title should not be the same as the ID of the current article.

So in article "November 25, 2024", that would mean: the title should not be "366".
That doesn't make much sense.
Please post a rating at the Joomla! Extensions Directory
Patricia Lawson's Avatar Patricia Lawson
I don't see 'the one you set up for this account' anywhere in my messages to you. Perhaps you are referring to the fact that I disabled JoomlaShack Tabs and Sliders Pro on the image I created that you are using? (...use 'Joomlashack Sliders and Tabs Pro'. For a while, I believed that their plugin was the problem. It is disabled on the system I have set up for you, )

I did not write the first iteration of this site. I agree that title="!this:id" is not needed. I removed it and all seems to still work fine and yes, I agree, it makes no sense. (Don't know if you know of Odin Mayfield but he did this development for us about 7 years ago...)

Having removed the JS slider code, the pages that open with the date link (eg November 25, 2024) all open correctly now: I see the formatted Release Notes and I no longer get the Web Asset message. I can live without the slider.

What I am confused about is when you browse to the Release Notes page from the main menu, the Release Dates all show up (good); but I used to see all of the blocks of Release Notes on that page as well as when I opened the linked page. I don't mind not seeing the actual notes on that page (might actually be better that way), but, the page loads very slowly (trying to do something it can't?),
and,
if I turn on any kind of caching the rest of the site does not display correctly! For example, with caching on, if I browse to Documentation and select Data Connectivity, the module for items under Data Connectivity does not show up at all. Turn off caching, and the module works again.
That menu is driven by the module Cat/Article Tree, which uses Articles Anywhere to display the menu.

Thanks again, for your help.
Peter van Westen's Avatar Peter van Westen ADMIN
Password: The one you set up for this account
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
If you don't want to see the Articles Anywhere stuff in the category blog (and don't want to trigger it), place it in the fulltext part (place the read more bar before it). Or use the category list view instead.

Regarding caching, don't use the Page Cache plugin. Try Conservative caching in the global config.
Read for more on caching here: www.joomlabeginner.com/blog/tutorials/81...able-cache-in-joomla
Please post a rating at the Joomla! Extensions Directory
Patricia Lawson's Avatar Patricia Lawson
I updated the confidential info.

Regarding caching - I am not using the Page cache plugin - it is disabled. I have only used the caching in global config. I have tried both Conservative and Progressive. I have the problem with both.
Also, I have the caching issue with both Maria DB and MySQL. When turned on, the Cat/Article Tree module does not operate correctly....

I will try to digest and apply what you're telling me about AA in the module.
Peter van Westen's Avatar Peter van Westen ADMIN
So it seems you have more than just the issue with Articles Anywhere. If caching is causing those issues, then this is beyond Articles Anywhere.
I'll do some more testing, but looks like an issue on your setup.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
I've tried to do some more caching, but it looks like there is some weird server caching going on.
When making changes to files, these do not reflect on the site, unless I force-change the url (via ?something_unique).

Like mentioned earlier, the issues you are seeing seem to be beyond Articles Anywhere and are not something I can fix for you. I guess you will have to ask your host about the issues you are seeing.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription