Coder Social home page Coder Social logo

Comments (3)

daftspunk avatar daftspunk commented on August 17, 2024

Hi @pashasiraja

Wishing you a happy new year. Sorry to hear you are having difficulty with this.

Line 40 contains a "null coalescing operator" that was added in PHP 7.0 and onwards. This suggests your server may be running an incompatible version of PHP. Please check with your service provider on how to ensure that the web server uses PHP 7.4, sometimes it can be customized per website.

I hope this helps!

from deploy-plugin.

pashasiraja avatar pashasiraja commented on August 17, 2024

from deploy-plugin.

daftspunk avatar daftspunk commented on August 17, 2024

Using this code

<?php

echo $a ?? 'a variable is not defined';

The exact error can be reproduced here using PHP 5.6.29:

Parse error: syntax error, unexpected '?' in [...][...] on line 5

Notice the error does not occur using PHP 7.0.1:

a variable is not defined

This confirms that your server is not using PHP 7.4. Please contact your web host for support with switching the version. There is no module, the syntax error comes directly from the PHP version. I'm sorry we can't be of more assistance.

Best of luck!

from deploy-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.