• Chevereto Support

    General support checklist

    1. 🎛Confirm that your server meets the System Requirements
    2. 🔥Check for any available Hotfix
    3. 📚Read documentation - It will be required to Debug and understand Errors for a support response

    Requesting help

    1. 👑Purchase Extra Support to get direct email communication with the developer - Save yourself all the hassle of ticketing
    2. 🛎Open a Ticket - If you need software support
    3. 🐞Open a Bug - If you found something not working properly

cli.php error

Version
3.20.11
PHP version
7.4.23
Database driver
MySQL
Database version
8.0
Web browser
Safari

JakeSully

💖 Chevereto Fan
Beta tester
So i setet a cronjob on this cli file but I'm receiving mail with following error from it.

Code:
/home/user/public_html/gallery/cli.php: line 1: ?php
: No such file or directory
/home/user/public_html/gallery/cli.php: line 2: /backup: Is a directory
/home/user/public_html/gallery/cli.php: line 3: $'\r': command not found
/home/user/public_html/gallery/cli.php: line 4: $'Chevereto\r': command not found
/home/user/public_html/gallery/cli.php: line 5: https://chevereto.com/
: No such file or directory
/home/user/public_html/gallery/cli.php: line 6: $'\r': command not found
/home/user/public_html/gallery/cli.php: line 7: http://rodolfoberrios.com/: No such file or directory
/home/user/public_html/gallery/cli.php: line 8: inbox@rodolfoberrios.com: No such file or directory
/home/user/public_html/gallery/cli.php: line 9: $'\r': command not found
/home/user/public_html/gallery/cli.php: line 10: syntax error near unexpected token `C'
/home/user/public_html/gallery/cli.php: line 10: `  Copyright (C) Rodolfo Berrios A. All rights reserved.
'

As I can see is that it's trying to access whole different server and domain and such. which I'm confused? Why is it trying to access rodolfoberrios.com and it's email and such and not my own chevereto??

So it seems it cannot run properly because of this and it idk if anyone else have this?

Update: After re-looking at cli.php I found this under <?php

Code:
/* --------------------------------------------------------------------

  Chevereto
  https://chevereto.com/

  @author    Rodolfo Berrios A. <http://rodolfoberrios.com/>
            <inbox@rodolfoberrios.com>

  Copyright (C) Rodolfo Berrios A. All rights reserved.

  BY USING THIS SOFTWARE YOU DECLARE TO ACCEPT THE CHEVERETO EULA
  https://chevereto.com/license

  --------------------------------------------------------------------- */

So I wonder if this is part doing it?
 

Rodolfo

⭐ Chevereto Godlike
Chevereto Staff
Administrator
As I can see is that it's trying to access whole different server and domain and such. which I'm confused? Why is it trying to access rodolfoberrios.com and it's email and such and not my own chevereto??
You are getting those as it seems that there's no PHP interpreter available in the path you are using for your cron. What the shell is doing is just echoing the contents of the cron file.

Chances are that you need to provide the full PHP binary path, or add that path to PATH for the user running that cron.
 

JakeSully

💖 Chevereto Fan
Beta tester
You are getting those as it seems that there's no PHP interpreter available in the path you are using for your cron. What the shell is doing is just echoing the contents of the cron file.

Chances are that you need to provide the full PHP binary path, or add that path to PATH for the user running that cron.
If I remember it right. I have set a php infront of it. But yet following error I have in main topic is what it throws in error log.
 

siddharth

💖 Chevereto Fan
Try this

1) try to copy paste the command you mentioned in the crontab and check whether it executes it properly. If it did not, make sure to mentions the correct php path.

2) try to delete the current cli.php and download it from original source and use it once.
 
Top