Comments (13)
Confirm, I didn't notice it, because I didn't log out of the forum after installation :)
Post2: protected static Post|Post2 $obj;
Login: protected static Login2|Login $obj;
Logout: protected static Login2|Logout $obj;
from smf.
I can't reproduce this error. Is anyone else able to?
from smf.
I can't reproduce this on my test board either.
from smf.
For me, this issue occurs only on PHP 8.0.30. There is no problem with PHP 8.1+
from smf.
I can reproduce on PHP 8.0.30
from smf.
I get pretty much the same issue in action=login
Type of SMF\Actions\Login::$obj must be SMF\Actions\Login2 (as in class SMF\Actions\Login2) in \Sources\Actions\Login.php on line 28
from smf.
Odd, I switched over to 8.0.30 and it works still. Must be something more.
from smf.
Are you guys on Windows? Using a WAMP-type setup? Using Apache with mod_php or something?
Trying to see what variable I am missing to produce this.
from smf.
Windows 11, PHP 8.0.30
from smf.
Same here
from smf.
@ Sesquipedalian I would like your opinion here. Looks like PHP 8.0 on Windows does not handle extending the class concerning self
under $obj
. PHP 8.0 is already EOL and Windows usage is fairly low I suspect.
We seem to have two options
- Fix the code as suggested above, removing reference to self in the base class and using the unions of the base and extended classes.
- Do not support PHP 8.0 on Windows.
I'm debating this, because do we want to do a fix for this that affects a very small (maybe non-existent) under of installations?
from smf.
One more reason to increase the minimum PHP version :)
from smf.
The best solution is to set the type for all $obj
properties to the class name (or the name of the extended class, if applicable). I will submit a PR shortly.
from smf.
Related Issues (20)
- [2.1]: Notication emails for reply not sent if user also subscribe for the board HOT 2
- [3.0]: MariaDB doesn't have "REGEXP_LIKE" HOT 1
- [3.0]: Upgrade doesn't work HOT 2
- [3.0/2.1]: Installing packages/themes does not parse line breaks for the XML tags. HOT 1
- [3.0]: Upgrade breaks after backup due to User::$me not being initialized
- [3.0]: New columns not being added to tables HOT 1
- [3.0]: Calling pg_version() with default connection is depracated as of PHP 8.1
- [3.0] Installer needs General language file? HOT 17
- [3.0]: Error while adding holidays
- [3.0]: Adding calendar event can cause max_execution_time to be exceeded HOT 3
- [3.0]: No option to delete events
- [3.0]: Undefined variable $is_os HOT 10
- [3.0]: Installer does not provide minimum database version upon failure due to unsupported version. HOT 2
- [3.0]: Config::getTempDir() is defaulting to sys_get_temp_dir HOT 1
- [2.1 & 3.0]: PHP Fatal error: Uncaught Error: Interface "MatthiasMullie\PathConverter\ConverterInterface" not found HOT 2
- [3.0]: Installer - Line #1604: Field 'exdates' doesn't have a default value HOT 2
- [3.0]: Cannot send PM - "You have an error in your SQL syntax;"
- [3.0]: "You have an error in your SQL syntax" trying to update profile HOT 1
- [2.1 & 3.0]: Merged topic link is broken
- [3.0]: Suggestion - consistent encoding HOT 1
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 smf.