• Resolved chevymanguiob

    (@chevymanguiob)


    Hello,

    The files from promoted_jobs directory are having an error in my cpanel these files are class-wp-job-manager-promoted-jobs.php and class-wp-job-manager-promoted-jobs-api.php.
    My PHP version is 8.1.

    In my local machine with the same php version these files does not have any errors but on our staging server and in production cpanel will highlight the error. Please see the image links below. I hope we can resolve the problem. Thank you

    https://i.imgur.com/LoeK0Ia.png

    https://i.imgur.com/aVrXdnp.png

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    those look errors caused by an older PHP version. Anything about PHP 7.4 should work, could you double-check that the staging and production sites are running 8.1 too? Or maybe CPanel has some compatibility check that’s configured for an older version?

    Thread Starter chevymanguiob

    (@chevymanguiob)

    Hello,

    Thank you for your reply.

    These are the links of the images that we confirmed that our server and wordpress are using PHP 8.1.

    Terminal PHP
    https://i.imgur.com/GckHPVI.png

    WordPress Settings
    https://i.imgur.com/wNcG94A.png

    Cpanel
    https://i.imgur.com/9plcqhP.png

    System PHP
    https://i.imgur.com/YtRD6Pq.png

    Pipeline Error after running the activate plugin script https://i.imgur.com/9NwMR5a.png

    Do you think that the System PHP Version affecting the Cpanel, even if we the domains are running php versions greater than 7.3?

    Thank you.

    • This reply was modified 2 years, 8 months ago by chevymanguiob.
    Thread Starter chevymanguiob

    (@chevymanguiob)

    Update: We are able to change the default system php version to 8.1 but the error still exist in our CPanel. Please see image below.
    https://i.imgur.com/EOyu1Gy.png

    I’d still suspect that pipeline script or part of it somehow running PHP 7.3. That error message very much sounds like an older version of PHP not recognizing the syntax.

    If you have other means of uploading the plugin or temporary disabling that pipeline, you should try updating Job Manager on the staging site and checking if it shows the error. I did a few tests and also checked various sites, running the new version on anything from PHP 7.4 to 8.2 should be working.

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello!

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Promoted Job Files Error’ is closed to new replies.