Our Joomla! extensions are all OpenSource and free of charge. Support is also free of charge. Nevertheless, we do have costs that need to be paid. This is done out of our own pocket. We have had a donation button on our website for some time now, which is actually used to make donations from time to time. The donation progress bar is intended to show how much support we have received and how much is still missing to cover the basic costs, such as hosting and services. The annual costs currently amount to 420€.

Received Donations:

  • 2024: 233 €
  • 2025: 63 €

Thank you for your support!

Donate PayPal GitHub Sponsors

You want to support and there is no suitable platform? Write to us in the forum.

74,31€

Sitemap V.5.1.1 Task Schedule Error

2 years 4 months ago #562 by Markus
Sitemap V.5.1.1 Task Schedule Error was created by Markus
Hi Sven,

thanks for your great extension! Today, I have installed your newest Version of the Schuweb Sitemap extension V 5.1.1 on a local xampp test system. After executing the scheduled task manually, i got the error message "Unexpected token '<', "<br /> <b>"... is not valid JSON".

After more investigation I found the reason. The response includes a lot of warnings from php and this corrups the json response:<b>Warning</b>:  foreach() argument must be of type array|object, null given in <b>C:\xampp\htdocs\websiteStaging100623\plugins\schuweb_sitemap\content\content.php</b>on line<b>648</b><br />

The sitemap itself updates correctly and I have no problems on my prod system because the output of php warnings are disabled here. I am sure the previous version of your extension has no problem while running the scheduled task. Maybe you can take a look and make a fix to improve the user experince?

Cheers

Markus
 

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

2 years 4 months ago #563 by Sven Schultschik
Replied by Sven Schultschik on topic Sitemap V.5.1.1 Task Schedule Error
Hi Markus,

welcome and thank you for reporting. I will check that.

br

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.

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

1 year 1 week ago - 1 year 1 week ago #682 by thegeorge75
Replied by thegeorge75 on topic Sitemap V.5.1.1 Task Schedule Error
I also encountered a problem with Task Schedule (v. 5.3.1, J 4.4.14, PHP 8.0 Debian
) (I was receiving PHP warnings in the JSON response). Fix Task Schedule in: /plugins/task/schuwebsitemap/service/provider.php by replacing the register function (thanks to deepseek):

public function register(Container $container)
{
if (!ComponentHelper::isEnabled('com_schuweb_sitemap')) {
return;
}

$container->registerServiceProvider(new MVCFactory('SchuWeb\\Component\\Sitemap'));

$container->set(
PluginInterface::class,
function (Container $container) {

$dispatcher = Factory::getApplication()->getDispatcher();

$plugin = new SchuWebSitemap(
$dispatcher,
(array) PluginHelper::getPlugin('task', 'schuwebsitemap')
);
$plugin->setApplication(Factory::getApplication());

return $plugin;
}
);
}

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

1 year 1 week ago #687 by Sven Schultschik
Replied by Sven Schultschik on topic Sitemap V.5.1.1 Task Schedule Error
Thx for report. I put this next on my list.

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.

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

Time to create page: 0.230 seconds
Powered by Kunena Forum