Announcement

Collapse
No announcement yet.

upgrade breaks my espo

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • upgrade breaks my espo


    Hello, i am getting error 500 (espocrm web wont open) after upgrading using command php, which went with no errors at all, i have php 8.1.5
    logs shows
    [2023-01-15 00:02:02] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []

    I have used rebuild PHP using command line but still no fix.
    also run clear_cache.php it says "-bash: clear_cache.php: command not found
    No fix.
    ​"
    Please help ASAP. thanks​
    Last edited by shootify; 01-15-2023, 03:13 AM.

  • #2
    Hi,

    Check your webserver log.

    We always ask to backup before upgrading. https://forum.espocrm.com/forum/anno...6872#post86872

    BTW, today is Sunday, not working day. Our support does not work.

    Comment


    • yuri
      yuri commented
      Editing a comment
      Did you upgrade PHP before?

  • #3
    Originally posted by yuri View Post
    Hi,

    Check your webserver log.

    We always ask to backup before upgrading. https://forum.espocrm.com/forum/anno...6872#post86872

    BTW, today is Sunday, not working day. Our support does not work.
    i did upgrade from php 7.4 to 8.1.5 long time ago prior upgrading to V7... espocrm V7.3 is not compatible with php 8.1.5? thanks for the help.
    another weird thing on server logs it reference to php 7 which was removed prior upgrading to php 8.

    [Sun Jan 15 17:35:18.400046 2023] [php7:error] [pid 829] [client 104.33.33.278:11743] PHP Parse error: syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) in /var/www/espocrm/vendor/laminas/laminas-mail/src/Protocol/Smtp.php on line 329

    [Sun Jan 15 17:47:16.283948 2023] [php7:error] [pid 830] [client 104.33.33.248:9382] PHP Parse error: syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) in /var/www/espocrm/vendor/laminas/laminas-mail/src/Protocol/Smtp.php on line 329
    Last edited by shootify; 01-15-2023, 06:18 PM.

    Comment


    • #4
      Hi,

      One alternative to spending countless hours trying to fix a bad installation is to scrap everything and start from scratch.

      You can find instructions here if you decide to go this way: https://forum.espocrm.com/forum/inst...1187#post61187

      Good Luck !

      Comment


      • #5
        It's likely your webserver using PHP lower than v8.0 (it was my first suspicion once I saw you initial post).

        I do not recommend from scratch. It's usually a one simple step needed to fix a problem.

        Comment


        • #6
          Steps an administrator should have done had they your issue.

          1. Find the troubleshooting article in the docs: https://docs.espocrm.com/administrat...oubleshooting/
          2. In the very top: Check logs > Webserver error log.
          3. Get the error from the log.
          4. Google the error.
          5. Find out that error is caused when PHP 8.0 code is run on older PHP versions.

          Comment


          • #7
            Originally posted by yuri View Post
            Steps an administrator should have done had they your issue.

            1. Find the troubleshooting article in the docs: https://docs.espocrm.com/administrat...oubleshooting/
            2. In the very top: Check logs > Webserver error log.
            3. Get the error from the log.
            4. Google the error.
            5. Find out that error is caused when PHP 8.0 code is run on older PHP versions.
            FIxed, the issue was: PHP7.4 Somehow was still enable on the server, so i have disable php7.4 and enable 8.1 through command line, and boom..working as usual. thanks for your help.

            Comment


            • telecastg
              telecastg commented
              Editing a comment
              Thanks for posting the solution so others can learn from it.
          Working...
          X