Issues with Sugar 13.0 and PHP 8.2 in Vagrant

Anyone else having issues getting Sugar 13.0 to work in a Vagrant using PHP 8.2? I keep getting " (Elasticsearch Queue Scheduler) failed in CRON run, Undefined constant "Sugarcrm\Sugarcrm\Elasticsearch\Adapter\CURLOPT_USERAGENT"" from the cron jobs but I also see "Undefined constant" in the php error logs. I have gotten it to work using PHP 8.0 but not 8.2, which is the version Sugar says 13.0 is compatible with. I am currently using Vagrant "sugarcrm/php80es716" but I have upgraded ElasticSearch to 8.7.1 and MySQL to 8.0.33 but I have been unable to get 13.0 to work on Vagrant "sugarcrm/php82es84"

Parents
  • Hi ,

    I've just released a new version of  sugarcrm/php82es84  that contains the fixes required to install a Vanila instance of Sugar 13.0.

    To ensure you have gotten the latest available in the Vagrant Cloud, I recommend you remove your local copy (or force v1.1 to be downloaded in your Vagrantfile), to remove it, simply run vagrant box remove sugarcrm/php82es84.

    You should see something like this:

    sh-3.2$ vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'sugarcrm/php82es84' could not be found. Attempting to find and install...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    ==> default: Loading metadata for box 'sugarcrm/php82es84'
        default: URL: https://vagrantcloud.com/sugarcrm/php82es84
    ==> default: Adding box 'sugarcrm/php82es84' (v1.1) for provider: virtualbox
        default: Downloading: https://vagrantcloud.com/sugarcrm/boxes/php82es84/versions/1.1/providers/virtualbox.box
        default: Calculating and comparing box checksum...
    ==> default: Successfully added box 'sugarcrm/php82es84' (v1.1) for 'virtualbox'!
    ==> default: Importing base box 'sugarcrm/php82es84'...

    As you can see below, everything checks out and passed.

    SugarCRM | Principal Developer Advocate

  • I can confirm that the vagrant does work for Sugar 13.0. Although, the vagrant is still missing a few php packages (php-mysql php-zip php-xml php-bcmath) that are required for turning on scheduler. 

  • Hi ,

    This is odd, I did test (and execute) a few jobs myself without issues, could you please share any details you have for us? I don't see how that'd fail unless there are extra needs from your cloud backup.

    Here's a list of modules installed in the image:

    vagrant@vagrant:/vagrant$ php -m
    [PHP Modules]
    bcmath
    calendar
    Core
    ctype
    curl
    date
    dom
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    json
    ldap
    libxml
    mbstring
    mcrypt
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    Phar
    posix
    random
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    sodium
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    xdebug
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Xdebug
    Zend OPcache

    SugarCRM | Principal Developer Advocate

Reply
  • Hi ,

    This is odd, I did test (and execute) a few jobs myself without issues, could you please share any details you have for us? I don't see how that'd fail unless there are extra needs from your cloud backup.

    Here's a list of modules installed in the image:

    vagrant@vagrant:/vagrant$ php -m
    [PHP Modules]
    bcmath
    calendar
    Core
    ctype
    curl
    date
    dom
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    json
    ldap
    libxml
    mbstring
    mcrypt
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    Phar
    posix
    random
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    sodium
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    xdebug
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Xdebug
    Zend OPcache

    SugarCRM | Principal Developer Advocate

Children