Comments (5)
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.
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.
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.
Thank you for your answer!
from brutalist-framework.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brutalist-framework.