Invalid URL after update

Search
Other Bug Reports questions
Forum

Invalid URL after update

Moreno's Avatar Moreno
Hi,
I have recently updated Joomla and the plugin "Components anywhere".
I currently have Joomla 3.10.5 and System - Regular Labs - Components Anywhere 4.9.0.
After the update the plugin no longer works and keeps showing me the message:
<!-- Components Anywhere Message: The component cannot be placed because an invalid URL is given or the page timed out. -->

I carried out many many tests by modifying the url (which can be reached: trent.operauni.tn.it/camera-singola ) but in the homepage ( trent.operauni.tn.it/ ) I don't see the articles.

I report below all the attempts i made:
- The server has a very very fast response time (I recently changed the server and bought a very powerful one);
- I tried to write the shortcode in multiple methods but the result was never seen (ex: {component url="camera-singola"};{component camera-singola};...);
- I tried to change the plugin configurations;
- I tried to disable ALL plugins on the site except this one;
- I tried to change the sort order of the plugin;
- Uninstalled and reinstalled the plugin

Before updating the plugin everything was working fine, I assume there is a bug. how can i solve?

Thanks,
Moreno
Peter van Westen's Avatar Peter van Westen ADMIN
What kind of caching do you have active on your site?
Is the Page Cache plugin also enabled?
Please post a rating at the Joomla! Extensions Directory
Moreno's Avatar Moreno
The plugin Page Cache it is not active.
I use your plugin "System - Regular Labs - Cache Cleaner"
Peter van Westen's Avatar Peter van Westen ADMIN
Cache Cleaner is not a caching plugin. It doesn't create cache ?

Anyway, Can you give me (super) admin access so I can take a look?
And tel me where you have entered the Components Anywhere code...

You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Moreno's Avatar Moreno
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Components Anywhere asks Joomla to return the content of the URL. Or it uses cUrl directly (if enabled in the settings).
In both cases, the server returns a "404 not found" error.

The URL it is trying to get is:
/camera-singola?lang=it-IT&tmpl=component&rendercomponent=1
Which does work when placed directly in the browser.

Full error is:
Not Found
The requested URL /camera-singola was not found on this server.
From what I can tell, this is something that is going wrong on server level. Probably some server security module that is kicking in and blocking the call to the URL via PHP.
Maybe this now kicks in because of a difference in header data (compared to an older version of Components Anywhere).

I recommend you ask your host to see why the call to that URL is returning a 404 error.
Please post a rating at the Joomla! Extensions Directory
Moreno's Avatar Moreno
I tried to install the plugin on another site on the same server and it doesn't work 🙁 so it's definitely a server problem.
But I don't know where to put my hands to solve the problem.
It is probably a firewall problem but it is difficult for me to understand why it is not working.

do you still confirm that I cannot reach and view the link you sent me earlier (/camera-singola?lang=it-IT&tmpl=component&rendercomponent=1)?

Thank you very much for your help!
Peter van Westen's Avatar Peter van Westen ADMIN
Yup, so that url is working when called directly in the browser.
But is returning a 404 when it is called through PHP (cURL or fopen).

You could try with a non-SEF URL instead. But I expect the same results.

Ask your host to look into this.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
If you need a little debugging help:
Add this tos the end of your homepage URL (or any URL that is using Components Anywhere in the content):
?&debug_component=1
That will show you the result of the cURL call.

I do see that you need to clear the cache every time. So it looks like you have some persistent caching going on too.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in