Giter Club home page Giter Club logo

Comments (16)

joomdonation avatar joomdonation commented on May 28, 2024 1

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.

webchun avatar webchun commented on May 28, 2024

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.

counterpoint avatar counterpoint commented on May 28, 2024

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.

alikon avatar alikon commented on May 28, 2024

unable to replicate with php 8.2.16

from joomla-cms.

Quy avatar Quy commented on May 28, 2024

I cannot reproduce either. Please enable debug mode and set error reporting to maximum to get a stack trace.

from joomla-cms.

alikon avatar alikon commented on May 28, 2024

from my old memories could help
https://serverpilot.io/docs/error-failed-to-read-fastcgi-header/

from joomla-cms.

webchun avatar webchun commented on May 28, 2024

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.

joomdonation avatar joomdonation commented on May 28, 2024

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.

counterpoint avatar counterpoint commented on May 28, 2024

from joomla-cms.

counterpoint avatar counterpoint commented on May 28, 2024

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.

joomdonation avatar joomdonation commented on May 28, 2024

@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.

counterpoint avatar counterpoint commented on May 28, 2024

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.

joomdonation avatar joomdonation commented on May 28, 2024

@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.

counterpoint avatar counterpoint commented on May 28, 2024

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.

counterpoint avatar counterpoint commented on May 28, 2024

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.

joomdonation avatar joomdonation commented on May 28, 2024

PR #42869 should address this issue. Please test it if you can. Thanks !

from joomla-cms.

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.