-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component build json output #39341
Comments
I am seeing the same messages, intermittently, about failing to write the session when invoking a controller via JS that passes to and is returned JSON.
my controller does almost nothing
Reloading the page resolves the issue for awhile but its return is seemingly random. I don't have anymore diagnostics than already supplied at this stage. PHP Version 8.0.23 Running on a local LAMP stack. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39341. |
This is coming from recent changes in debug plugin. When |
Confirmed, enabling |
@SharkyKZ So it’s a bug, right? |
I cannot reproduce the issue with your code since JsonView doesnt apply any template code. So the output is always empty... tmpl\json\json.php is never called. parent::display just puts this->_output into the documents buffer. $this->json is not used. |
@MacJoom Which PHP version have you used when trying to reproduce the issue? Was it 7.4? Possibly the issue happens only with PHP 8.x. |
I have found another thing which happens with PHP 8 which happens when the "Track Request History" option in the "Debug" system plugin is disabled and disappears when that option is enabled. See #39403 . It seems they have the same root cause, but I wanted the symptoms to be documented and so created that other issue. |
Closing as having a pull request. Please test #39526 . Thanks in advance. |
Steps to reproduce the issue
Build a component view for json formatted output.
URL:
http://localhost/joomla/index.php?option=com_testcomponent&view=json&format=json
site\src\View\Json\JsonView.php:
site\tmpl\json\json.php:
Expected result
Actual result
System information (as much as possible)
MS Windows 11
XAMPP for Windows 8.1.12
Apache/2.4.54 (Win64)
PHP Version 8.1.12
Additional comments
Debug mode is turned on, but nothing populates in everything.php
The text was updated successfully, but these errors were encountered: