Cron Status

PHP Fatal error cronstatus_module.php - Cron Status

PHP Fatal error cronstatus_module.php

by </Solidjeuh> » Wed Oct 31, 2018 7:08 pm

Hello,

I know phpBB 3.2.4 is still RC, but I have this error on my test board when I go to "Maintenance / Cron status"

Code: Select all

/var/www/vhosts/solidjeuh.be/httpdocs/ext/boardtools/cronstatus/acp/cronstatus_module.php on line 190, referer: https://www.solidjeuh.be/adm/index.php?sid=0783d87c61ec773ab84d1981629be08c&i=25
[Wed Oct 31 19:53:05.219580 2018] [fcgid:warn] [pid 6498:tid 140608958068480] [client 2a02:a03f:54fe:a00:c8e4:94ca:b1d1:17fe:56568] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined method phpbb\\request\\type_cast_helper::addslashes_recursively() in 
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: PHP Fatal error cronstatus_module.php

by LavIgor » Wed Oct 31, 2018 7:15 pm

OK, thank you for the report.
You can change that function to simply addslashes, that will be done in the new release when it comes out.
LavIgor
Registered User
Posts: 545
Joined: Mon Apr 28, 2014 1:47 pm
Contact:

Re: PHP Fatal error cronstatus_module.php

by </Solidjeuh> » Wed Oct 31, 2018 7:29 pm

LavIgor wrote:OK, thank you for the report.
You can change that function to simply addslashes, that will be done in the new release when it comes out.
Like this $type_cast_helper->addslashes($cron_url); ?

Code: Select all

PHP Fatal error:  Uncaught Error: Call to undefined method phpbb\\request\\type_cast_helper::addslashes() in /var/www/vhosts/solidjeuh.be/httpdocs/ext/boardtools/cronstatus/acp/cronstatus_module.php:190, referer:
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: PHP Fatal error cronstatus_module.php

by LavIgor » Wed Oct 31, 2018 7:30 pm

No, without $type_cast_helper->.
LavIgor
Registered User
Posts: 545
Joined: Mon Apr 28, 2014 1:47 pm
Contact:

Re: PHP Fatal error cronstatus_module.php

by </Solidjeuh> » Wed Oct 31, 2018 7:34 pm

LavIgor wrote:No, without $type_cast_helper->.
Yessss that works. Thank you ;)
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: PHP Fatal error cronstatus_module.php

by chanlon1 » Mon Dec 30, 2019 10:46 pm

I am trying to install this on v3.2.8

Line 190 on the module shows

Code: Select all

$type_cast_helper->addslashes_recursively($cron_url);
What should I be changing this to?
When I enable the extension, and go to the Check Cron Status page, I just get a white screen.

thanks
User avatar
chanlon1
Registered User
Posts: 191
Joined: Wed Mar 09, 2005 10:01 pm
Location: Belfast, N. Ireland
Contact:

Re: PHP Fatal error cronstatus_module.php

by 3Di » Tue Dec 31, 2019 1:36 am

just change

'CRON_URL' => $cron_url,

to

'CRON_URL' => addslashes($cron_url),

and DELETE

Code: Select all

			$type_cast_helper = new \phpbb\request\type_cast_helper(); // We need to use a special class because addslashes() is thought to be not valid by EPV.
			$type_cast_helper->addslashes_recursively($cron_url);
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ยบ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! ๐Ÿš€
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: PHP Fatal error cronstatus_module.php

by chanlon1 » Tue Dec 31, 2019 4:36 pm

cheers...got it sorted now
User avatar
chanlon1
Registered User
Posts: 191
Joined: Wed Mar 09, 2005 10:01 pm
Location: Belfast, N. Ireland
Contact:

Re: PHP Fatal error cronstatus_module.php

by 3Di » Tue Dec 31, 2019 5:25 pm

Great! ;)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ยบ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! ๐Ÿš€
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: PHP Fatal error cronstatus_module.php

by colinshead » Mon Jan 13, 2020 5:15 pm

Hi 3Di

Did not work on 3.2.5 either, but the edit in the module you suggested works a treat thanks.

Just a shame that this useful extension is not being updated.

All the best

Colin
colinshead
Registered User
Posts: 104
Joined: Sun Mar 29, 2015 11:37 am
Contact:

Re: PHP Fatal error cronstatus_module.php

by 3Di » Mon Jan 13, 2020 6:32 pm

It works here
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ยบ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! ๐Ÿš€
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: PHP Fatal error cronstatus_module.php

by heinrich_k » Mon Sep 14, 2020 4:25 pm

Could this changes be please incorporated into the repository.
heinrich_k
Registered User
Posts: 221
Joined: Fri Jul 17, 2009 11:40 am
Contact: