Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error in com_content after upgrading Joomla from version 5.1.4 to 5.2.0 #44285

Closed
danielcorrea opened this issue Oct 16, 2024 · 9 comments
Closed

Comments

@danielcorrea
Copy link

Steps to reproduce the issue

After the update, the frontend is functioning correctly, but the backend is experiencing a limitation: the content component only allows articles to be listed. When attempting to edit an article or create a new one, the following error appears: "0 COM_MEDIA_ERROR_ACCOUNT_NOT_FOUND".

As mentioned in issue #44277, the error might be related to the TinyMCE editor. However, even after disabling it, Joomla did not resume normal operation.

Although the error prefix suggests a connection to the Media component, I tested it, and it appears to be functioning correctly. Furthermore, I found no error logs in either the Apache logs or Joomla’s internal logs.

Expected result

Actual result

System information (as much as possible)

php: Linux 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
dbserver: mysql
dbversion: 11.3.2-MariaDB-1:11.3.2+maria~deb12
dbcollation: utf8mb4_general_ci
dbconnectioncollation: utf8mb4_general_ci
dbconnectionencryption: TLSv1.3 (TLS_AES_256_GCM_SHA384)
dbconnencryptsupported: true
phpversion: 8.2.16
server: Apache/2.4.57 (Debian)
sapi_name: fpm-fcgi
version: Joomla! 5.2.0 Stable [ Uthabiti ] 15-October-2024 16:00 GMT
compatpluginenabled: true
compatpluginparameters:
useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Additional comments

URL ERROR: https://domain.com/administrator/index.php?option=com_content&view=article&layout=edit

@danielcorrea
Copy link
Author

An additional piece of information that might help understand the issue: I have Phoca Download installed, and when attempting to create a new entry, the same error occurs.
URL: https://domain.com/administrator/index.php?option=com_phocadownload&view=phocadownloadfile&layout=edit

I disabled Phoca, including its components and plugins, but the error persists.

@Jan-at-tetronik
Copy link

I have the exact same issue in several test installations. I'm not using Phoca Download, but I'm using YOOtheme Pro as a page builder. Maybe it's got something to do with that?

My system information is as follows:

System Information
Setting Value
PHP Built On Linux p-ri7cbt-2htxr-7f79f78bc8-7z89v 6.6.20-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.20-0gardenlinux0 (2024-03-06) x86_64
Database Type mysql
Database Version 8.0.36-28
Database Collation utf8mb4_general_ci
Database Connection Collation utf8mb4_0900_ai_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP Version 8.2.24
Web Server Apache/2.4.59
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 5.2.0 Stable [ Uthabiti ] 15-October-2024 16:00 GMT
Joomla Backward Compatibility Plugin Enabled ()
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44285.

@Octopus2
Copy link

I have the same problem under 5.2 and cannot edit existing articles either via the backend or the frontend. However, I have neither changed the standard image directory under Plugins System File System, nor do I have Phoca Download installed. The template is Helix Ultimate. This is very problematic, as I had no issues under 5.1.4. What additional information is needed? Here is the debug-info:

COM_MEDIA_ERROR_ACCOUNT_NOT_FOUND    
# | Function | Location
-- | -- | --
1 | () | JROOT/administrator/components/com_media/src/Provider/ProviderManager.php:128
2 | Joomla\Component\Media\Administrator\Provider\ProviderManager->getAdapter() | JROOT/administrator/components/com_media/src/Provider/ProviderManagerHelperTrait.php:97
3 | class@anonymous/www/htdocs/DOMAIN REMOVED/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:333$15->getAdapter() | JROOT/administrator/components/com_media/src/Provider/ProviderManagerHelperTrait.php:151
4 | class@anonymous/www/htdocs/DOMAIN REMOVED/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:333$15->getDefaultAdapterName() | JROOT/administrator/components/com_media/src/Provider/ProviderManagerHelperTrait.php:123
5 | class@anonymous/www/htdocs/DOMAIN REMOVED/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:333$15->resolveAdapterAndPath() | JROOT/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:338
6 | class@anonymous/www/htdocs/DOMAIN REMOVED/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:333$15->prepareTinyMCEUploadPath() | JROOT/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:352
7 | Joomla\Plugin\Editors\TinyMCE\Provider\TinyMCEProvider->display() | JROOT/libraries/src/Editor/Editor.php:211
8 | Joomla\CMS\Editor\Editor->display() | JROOT/libraries/src/Form/Field/EditorField.php:250
9 | Joomla\CMS\Form\Field\EditorField->getInput() | JROOT/libraries/src/Form/FormField.php:482
10 | Joomla\CMS\Form\FormField->__get() | JROOT/libraries/src/Form/Field/TextareaField.php:94
11 | Joomla\CMS\Form\Field\TextareaField->__get() | JROOT/libraries/src/Form/Field/EditorField.php:138
12 | Joomla\CMS\Form\Field\EditorField->__get() | JROOT/libraries/src/Form/Form.php:458
13 | Joomla\CMS\Form\Form->getInput() | JROOT/administrator/components/com_content/tmpl/article/edit.php:73
14 | include() | JROOT/libraries/src/MVC/View/HtmlView.php:416
15 | Joomla\CMS\MVC\View\HtmlView->loadTemplate() | JROOT/libraries/src/MVC/View/HtmlView.php:204
16 | Joomla\CMS\MVC\View\HtmlView->display() | JROOT/administrator/components/com_content/src/View/Article/HtmlView.php:135
17 | Joomla\Component\Content\Administrator\View\Article\HtmlView->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:697
18 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/administrator/components/com_content/src/Controller/DisplayController.php:65
19 | Joomla\Component\Content\Administrator\Controller\DisplayController->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:730
20 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
21 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:361
22 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:150
23 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:195
24 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:306
25 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/includes/app.php:58
26 | require_once() | JROOT/administrator/index.php:32

</div><!--EndFragment-->
</body>
</html>

@brianteeman
Copy link
Contributor

This appears to be the result of the changes made in #43579

I can replicate the bug and if I revert the changes in that PR the bug is cleared.

Hope that helps someone to resolve the bug

@Jan-at-tetronik
Copy link

Thanks Brian! :)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44285.

@danielcorrea
Copy link
Author

This appears to be the result of the changes made in #43579

Thank you, Brian, for the references provided in #43579.

In my case, the issue was related to TinyMCE. In the plugin, the "Images Directory" option was not defined. After setting it, the editor started loading correctly.

Image Plugins: Editor - TinyMCE

@Fedik
Copy link
Member

Fedik commented Oct 17, 2024

Please follow the comment #44277 (comment)
That should fix it for now.

@Fedik
Copy link
Member

Fedik commented Oct 17, 2024

I close this as duplicate of #44285

@Fedik Fedik closed this as completed Oct 17, 2024
@Fedik
Copy link
Member

Fedik commented Oct 19, 2024

Please test #44313

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

6 participants