Author Topic: Cronjobs adding backslash  (Read 9102 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Cronjobs adding backslash
« on: September 17, 2020, 03:01:47 AM »
First of all, hello to this community!
I've recently purchased CWPPro and i'm liking it very much.
Can someone confirm to me if this is only happening in my installation or others?
Whenever I add a cronjob from the Admin Panel that has quotes (") it adds a backslash on it, forcing me to edit the cron file.
Whenever I open the cronjobs panel from the User Panel, it automatically adds this backslashes to existing cronjobs with quotes, making it virtually impossible for my clients to set up cronjobs efficiently :(
I think this is urgent and might be quick to fix, would it be possible for you to add the fix on next update?

Offline
*
Re: Cronjobs adding backslash
« Reply #1 on: October 07, 2020, 10:47:51 AM »
Hi there, I see there is new updates on crons, but still this error is not fixed:


Everytime I or a client saves/edits a cronjob with quotes, It adds a backslash, infinite times.

Can someone please help or at least let me know if happens the same to you?

Re: Cronjobs adding backslash
« Reply #2 on: October 07, 2020, 11:40:15 AM »
Curiosity: does it actually affect the running of the tasks?
These are obviously being added by the GUI as delimiters for the double-quotes. If run from the command line as-is, then it shouldn't make any difference.

Offline
*
Re: Cronjobs adding backslash
« Reply #3 on: October 07, 2020, 01:46:17 PM »
Hello i think i can help, but you'll need to explain to me whats wrong right now or https://control-webpanel.com/contact and attach this forum thread to be tracked on your ticket.

Offline
*
Re: Cronjobs adding backslash
« Reply #4 on: October 07, 2020, 03:28:49 PM »
Curiosity: does it actually affect the running of the tasks?
These are obviously being added by the GUI as delimiters for the double-quotes. If run from the command line as-is, then it shouldn't make any difference.

I was checking the cron file it creates, and it adds them on the file also...
From the user control panel, everytime I actually refresh the crontab page, it adds tem...
This is after a few refreshes:


And crontab file:


So it actually interferes, because I stop receiving the e-mails, and the commands aren't executed.

I mean, this feels like a big flaw as I have to setup manually directly in the file, all my cronjobs for my resellers :s
« Last Edit: October 07, 2020, 03:31:50 PM by frussane »

Re: Cronjobs adding backslash
« Reply #5 on: October 07, 2020, 03:40:24 PM »
Ahh! Now that is very grim.  :(
Definitely a flaw (not just a bug) in the code.
Cue the devs.

Offline
*
Re: Cronjobs adding backslash
« Reply #6 on: October 07, 2020, 03:59:54 PM »
Ahh! Now that is very grim.  :(
Definitely a flaw (not just a bug) in the code.
Cue the devs.

Yeah I think I'll send them something through the contact form, trying to get their attention on this matter!

Could you try on your installation and see if it behaves the same?
I don't think it could be a server configuration problem, but, you never know... ._.

Re: Cronjobs adding backslash
« Reply #7 on: October 07, 2020, 04:23:00 PM »
I concur - it's fubar!
Quote
php -f \\\"test.php parameter\\\" > /dev/nul
Delimiter is added on each edit, plus it strips out any comments that are added (no big deal, really).

There's also a bug reporting page, if you can be assed and think they'll act upon it. ;)
https://bugs.control-webpanel.com/login_page.php
« Last Edit: October 07, 2020, 04:25:11 PM by cynique »

Offline
*
Re: Cronjobs adding backslash
« Reply #8 on: October 07, 2020, 05:32:58 PM »
I concur - it's fubar!
Quote
php -f \\\"test.php parameter\\\" > /dev/nul
Delimiter is added on each edit, plus it strips out any comments that are added (no big deal, really).

There's also a bug reporting page, if you can be assed and think they'll act upon it. ;)
https://bugs.control-webpanel.com/login_page.php

Thanks for testing!
I actually didn't know about that page, already registered and submited a bug ticket: https://bugs.control-webpanel.com/view.php?id=124

Hope they will fix it soon...
Have a great day!

Offline
*
Re: Cronjobs adding backslash
« Reply #9 on: October 22, 2020, 09:49:49 PM »
Quick update: This seems to be fixed recently!

Re: Cronjobs adding backslash
« Reply #10 on: October 22, 2020, 11:27:12 PM »
Ahh, the phantom changelog has struck!  :o

Offline
*****
Re: Cronjobs adding backslash
« Reply #11 on: November 27, 2020, 12:41:55 AM »
OK, I'm confused.
It looks like you are trying to change directories, run PHP, then run a command from another path, and then send the results to a null file.

What exact command are you trying to run with cron?

If you want, PM me back or post it here.

Re: Cronjobs adding backslash
« Reply #12 on: November 27, 2020, 12:51:39 AM »
OK, I'm confused.
It looks like you are trying to change directories, run PHP, then run a command from another path, and then send the results to a null file.

What exact command are you trying to run with cron?

If you want, PM me back or post it here.
Irrelevant and nothing wrong with the cron task, whatever it's supposed to do.  :P

Offline
*****
Re: Cronjobs adding backslash
« Reply #13 on: November 27, 2020, 12:53:45 AM »
Ahh, the phantom changelog has struck!  :o

Looks like .1023 was to add the updated PHP versions. :P