Advertisement

Cron fails on URL parse

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
MrDog
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Tue Sep 29, 2009 10:34 pm

Cron fails on URL parse

Post by MrDog » Tue May 14, 2024 9:18 pm

My cron entry reads:

/usr/local/bin/ea-php82 /home/birdli7/public_html/cronjobs/blp_cronjob_scheduler.php

This is what my host recommends. Yet I get the error

Could not parse the requested URI http:///home/birdli7/public_html/cronjobs/blp_cronjob_scheduler.php

In other words extra // added. It is a shared server so I have no access to most commands. I guess I could fix it by patching the Joomla code but I really don't want to go there. Running the latest Joomla 4 and PHP 8.2
Last edited by toivo on Tue May 14, 2024 9:47 pm, edited 1 time in total.
Reason: mod note: changed CAPS in subject - please observe the forum rules!

Advertisement
User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2869
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Cron fails on URL parse

Post by ceford » Wed May 15, 2024 9:41 pm

What is actually in /home/birdli7/public_html/cronjobs/blp_cronjob_scheduler.php ?

That looks dodgy because it can be called via a web browser. It would be best to put your php script in /home/birdli7/bin

MrDog
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Tue Sep 29, 2009 10:34 pm

Re: Cron fails on URL parse

Post by MrDog » Wed May 15, 2024 10:36 pm

Thanks - never considered that. The code is actually pretty secure but a useful tip. At the moment I have (reluctantly) patched libraries\vendor\joomla\uri\src\UriHelper.php to replace /// with // and that fixes the issue, but not a long term solution!

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 4.x”