Comments (16)
No worry @counterpoint . For the time being, you can make the propose change to your site to have the issue fixed. I will make the pull request on tomorrow to fix this issue so that it won't happen again when you update to future releases of Joomla
from joomla-cms.
I experience the same issue. When I publish a banner module or even access this page : administrator/index.php?option=com_banners&view=banners with Joomla installed on PHP 8.2.4, it crashes the website. Not only with Joomla 5, but I also experience the issue with Joomla 4.4.0.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
Sorry, forgot to mention that the file referred to that contains the error is .../administrator/components/com_banners/src/Helper/BannersHelper.php
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
unable to replicate with php 8.2.16
from joomla-cms.
I cannot reproduce either. Please enable debug mode and set error reporting to maximum to get a stack trace.
from joomla-cms.
from my old memories could help
https://serverpilot.io/docs/error-failed-to-read-fastcgi-header/
from joomla-cms.
I have set the error reporting to maximum and enabled the debug mode, but no stack trace shows up. The issue disappeared when I commented out this line in mod_banners.php: BannersComponentHelper::updateReset();
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
I cannot reproduce the issue, too. However, I can see that the code is wrong. @webchun @counterpoint Could you please modify this line of code https://github.com/joomla/joomla-cms/blob/4.4-dev/administrator/components/com_banners/src/Helper/BannersHelper.php#L42 to:
$date = Factory::getDate()->toSql();
Then check it again to see if the error is gon?
from joomla-cms.
from joomla-cms.
Debug and error reporting maximum were already enabled. But since the problem causes PHP to crash, diagnostics of that kind are not feasible. That made the problem difficult to track, since the only initial information was that there was a problem somewhere - probably in PHP code. PHP crashes may well be specific to a precise environnment. But Debian 12 is pretty mainstream. This link provides similar information to the link provided by @alikon but is not specific to Wordpress and indicates that a PHP error is the most common of the possible causes - https://bobcares.com/blog/apache-error-failed-to-read-fastcgi-header/
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
@counterpoint You are right. I just checked the code more and see that (string) $date and $date->toSql() result in same value. However, I would use $date->toSql() to make it consistent with other places in Joomla. For example https://github.com/joomla/joomla-cms/blob/4.4-dev/components/com_content/src/Model/ArticleModel.php#L184 and https://github.com/joomla/joomla-cms/blob/4.4-dev/components/com_content/src/Model/ArticleModel.php#L202 (Who knows if we use a DB driver using a date format different with Y-m-d H:i:s)
Do you want to make PR with the suggested change?
from joomla-cms.
That makes sense @joomdonation, although (string) is a lot more efficient. What is PR?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
@counterpoint In short, you make code change to to fix the issue. Please try to follow instructions here https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests to make the PR
The file you need to make change is https://github.com/joomla/joomla-cms/blob/4.4-dev/administrator/components/com_banners/src/Helper/BannersHelper.php (for 4.4-dev branch and later it will be up-merge to 5.1)
from joomla-cms.
Thanks @joomdonation. Sorry, but I'm not familiar with making git pull requests and do not have time to find out. I've precisely identified the fault, that should be enough.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
Thanks @joomdonation that's great.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42841.
from joomla-cms.
PR #42869 should address this issue. Please test it if you can. Thanks !
from joomla-cms.
Related Issues (20)
- [4.4] [PHP 8.1] Fixes Deprecated: strtolower(): Passing null to string in libraries\vendor\joomla\filter\src\InputFilter.php on line 213 HOT 1
- Feature request: [5.0] - add class to card body only for individual modules HOT 2
- Smart search without filter does not work as expected after searching with filter
- [5.0] Modal Select title never gets translated
- What is the advantage of using the "validationtext" tag in the text element? HOT 2
- Joomla 5.0.3: Sorting Custom Fields by field group not working HOT 5
- mod_articles_categories displaying the sub-sub-categories twice HOT 2
- [4.4] Override issue in child template HOT 5
- [5.1] abandoned composer dependencies HOT 11
- Smart Search Filter showing Zero Results when Component unchecked
- changelog script? HOT 2
- Updating Bootstrap from 5.3.2 to 5.3.3 HOT 1
- Install from Web Clear search HOT 1
- [5.1.0-beta1]Installation Problem HOT 18
- [5.1] tuf no transport HOT 7
- [5.x] Removal of the radiobasic field
- Feature request - toolbar button for Extensions Update on Extensions Mange and vice versa HOT 4
- [4.4.3]php Warnings in DatabaseModel.php HOT 2
- com_installer not always displaying extension script output HOT 6
- spam
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 joomla-cms.