Git Product home page Git Product logo

Comments (5)

pinecreativelabs avatar pinecreativelabs commented on September 16, 2024 3

Thank you for bringing this to my attention. I have not tested BF on PHP version 8.x, and I can confirm that it fails on PHP 7.4.

Currently, it seems to work fine on PHP 7.0, but NOT 7.1 or greater.

Ideally, BF should be made to work with the newer versions of PHP (8.x+), especially since BF 3.1 will include a backend portal. In the meantime, if you have access to change your PHP version, use 7.0.

from brutalist-framework.

pinecreativelabs avatar pinecreativelabs commented on September 16, 2024 1

BUG FIX: I've updated the bekah.php script with a bug fix. BF should now work on PHP 7.0 and up. Tested with PHP 8.3, and seems to work fine. I've uploaded the updated file to the CORE directory.

The culprit was the get_client_language function (which returns the user's default browser language code).

from brutalist-framework.

midivue avatar midivue commented on September 16, 2024 1

There seems to be a new issue within the new bekah.php:

 Parse error: syntax error, unexpected ')', expecting ']' in /var/www/html/core/bekah.php on line 236
function get_browser_language( $available = [], $default = 'en') {
   if (isset( $_SERVER['HTTP_ACCEPT_LANGUAGE' )) {
       //* Rest of the function...

The issue seems to be a typo, a missing closing square bracket ] in the isset() function:

function get_browser_language( $available = [], $default = 'en') {
    if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
    //* Rest of the function...

from brutalist-framework.

NoPMK avatar NoPMK commented on September 16, 2024

Thank you for your answer!

from brutalist-framework.

midivue avatar midivue commented on September 16, 2024

Thank you for the swift response and fix!

We just debugged the issue ourselves and came up with a pretty similar solution to yours and were contemplating a contribution although we were glad the issue was resolved by you with much more domain knowledge.

We are very excited to start working on our project with BF. :)

from brutalist-framework.

Related Issues (3)

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.