Upgrading component: PHP Fatal error: Allowed memory size exhausted

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
undercash
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Fri Dec 12, 2008 12:24 am
Contact:

Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by undercash » Wed Jan 19, 2022 8:35 pm

Hello

I m having this issue while trying to upgrade components . I can upgrade plugins fine but components, no.
This box is kinda low specs but I assume the hardware should be enough.

Whatever memory I m setting in php.ini it will try to use a bit more.

I m assuming this is not an issue with joomla. I m not updating joomla using the admin panel I prefer to untar file directly on the root.

Code: Select all

2022/01/20 04:52:40 [error] 1081#0: *2409 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /home/user/example.com/libraries/joomla/database/driver/mysqli.php on line 894PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /home/user/example.com/libraries/src/Session/Session.php on line 386" while reading response header from upstream, client: xx.xx.xx.xx, server: example.com, request: "POST /administrator/index.php?option=com_installer&task=install.ajax_upload HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/administrator/index.php?option=com_installer&view=install"
 
 
2022/01/20 05:18:24 [error] 1081#0: *4816 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 86016 bytes) in /home/user/example.com/libraries/src/Table/Nested.php on line 1340PHP message: PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /home/user/example.com/libraries/vendor/joomla/registry/src/Registry.php on line 89" while reading response header from upstream, client: xx.xx.xx.xx, server: example.com, request: "POST /administrator/index.php?option=com_installer&task=install.ajax_upload HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/administrator/index.php?option=com_installer&view=install"


2022/01/20 05:21:25 [error] 1081#0: *5112 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 4294967296 bytes exhausted (tried to allocate 20480 bytes) in /home/user/example.com/libraries/joomla/database/driver/mysqli.php on line 894PHP message: PHP Fatal error:  Allowed memory size of 4294967296 bytes exhausted (tried to allocate 20480 bytes) in /home/user/example.com/libraries/src/Session/Session.php on line 386" while reading response header from upstream, client: xx.xx.xx.xx, server: example.com, request: "POST /administrator/index.php?option=com_installer&task=install.ajax_upload HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/administrator/index.php?option=com_installer&view=install"

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9745
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by AMurray » Wed Jan 19, 2022 9:19 pm

Please use the Forum Post Assistant, as suggested (red box, top of screen), and post the report results here; that will tell us what your web server has as far as memory is concerned (that is available to PHP).

Are you setting the memory allocation in PHP.ini correctly e.g. "4096M" (= 4 GB) or 512M = 512 Mb). Are you setting it in the correct php.ini file, that your web site/web server is using?
Regards - A Murray
General Support Moderator

undercash
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Fri Dec 12, 2008 12:24 am
Contact:

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by undercash » Wed Jan 19, 2022 10:03 pm

well you can see that in the snippet I posted. I upgraded the memory each time (up to 4096mb which is insane) and it was using it all with a bit more each time.

The server has 16gb and normally I let fpm use up to 1024mb which I think is a lot

Post max size and Upload max is set up at 1500mb both

undercash
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Fri Dec 12, 2008 12:24 am
Contact:

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by undercash » Wed Jan 19, 2022 10:34 pm

and the funny things that happen is that the component still works : If I try to access it using the full url, it will work, but the menu item is gone, and it actually screw my main menu on the front end.
Also, in /administrator/component/updated-component/ there is no files at all left..

undercash
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Fri Dec 12, 2008 12:24 am
Contact:

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by undercash » Thu Jan 20, 2022 11:21 am

Forum Post Assistant (v1.6.5) : 20-Jan-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.10.5-Stable (Daraja) 15-January-2022
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (644) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: true | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: Is Not Empty | Session lifetime: 720 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.10.5: Yes | Database Supports J! 3.10.5: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 5.4.0-96-generic | Technology: x86_64 | Web Server: nginx/1.20.2 | Encoding: gzip | System TMP Writable: Yes | Free Disk Space : 507.54 GiB |

PHP Configuration :: Version: 7.4.27 | PHP API: fpm-fcgi | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 1500M | Max. POST Size: 1500M | Max. Input Time: 600 | Max. Execution Time: 600 | Memory Limit: 1024M

Database Configuration :: Version: 8.0.27-0ubuntu0.20.04.1 (Client:mysqlnd 7.4.27) | Database Size: 108.75 MiB | #of Tables with config prefix:  273 | #of other Tables:  8 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.27) | date (7.4.27) | libxml (7.4.27) | openssl (7.4.27) | pcre (7.4.27) | zlib (7.4.27) | filter (7.4.27) | hash (7.4.27) | Reflection (7.4.27) | SPL (7.4.27) | session (7.4.27) | standard (7.4.27) | sodium (7.4.27) | cgi-fcgi (7.4.27) | mysqlnd (mysqlnd 7.4.27) | PDO (7.4.27) | xml (7.4.27) | bcmath (7.4.27) | calendar (7.4.27) | ctype (7.4.27) | curl (7.4.27) | dom (20031129) | mbstring (7.4.27) | FFI (7.4.27) | fileinfo (7.4.27) | ftp (7.4.27) | gd (7.4.27) | gettext (7.4.27) | iconv (7.4.27) | imap (7.4.27) | intl (7.4.27) | json (7.4.27) | ldap (7.4.27) | exif (7.4.27) | mcrypt (1.0.4) | mysqli (7.4.27) | pdo_mysql (7.4.27) | pdo_sqlite (7.4.27) | Phar (7.4.27) | posix (7.4.27) | pspell (7.4.27) | readline (7.4.27) | shmop (7.4.27) | SimpleXML (7.4.27) | soap (7.4.27) | sockets (7.4.27) | sqlite3 (7.4.27) | sysvmsg (7.4.27) | sysvsem (7.4.27) | sysvshm (7.4.27) | tidy (7.4.27) | tokenizer (7.4.27) | xmlreader (7.4.27) | xmlrpc (7.4.27) | xmlwriter (7.4.27) | xsl (7.4.27) | zip (1.15.6) | Zend OPcache (7.4.27) | Zend Engine (3.4.0) |
Potential Missing Extensions ::
Disabled Functions :: pcntl_alarm | pcntl_fork | pcntl_waitpid | pcntl_wait | pcntl_wifexited | pcntl_wifstopped | pcntl_wifsignaled | pcntl_wifcontinued | pcntl_wexitstatus | pcntl_wtermsig | pcntl_wstopsig | pcntl_signal | pcntl_signal_get_handler | pcntl_signal_dispatch | pcntl_get_last_error | pcntl_strerror | pcntl_sigprocmask | pcntl_sigwaitinfo | pcntl_sigtimedwait | pcntl_exec | pcntl_getpriority | pcntl_setpriority | pcntl_async_signals | pcntl_unshare | |

Switch User Environment :: PHP CGI: No | Server SU: No | PHP SU: No | Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (777) | components/ (777) | modules/ (777) | plugins/ (777) | language/ (777) | templates/ (777) | cache/ (777) | logs/ (777) | tmp/ (777) | administrator/components/ (777) | administrator/modules/ (777) | administrator/language/ (777) | administrator/templates/ (777) | administrator/logs/ (---) |

Elevated Permissions (First 10) :: templates/ (777) | templates/ja_magz/ (777) | templates/ja_magz/images/ (777) | templates/ja_magz/images/ico/ (777) | templates/ja_magz/images/system/ (777) | templates/ja_magz/images/themes/ (777) | templates/ja_magz/images/themes/green/ (777) | templates/ja_magz/images/themes/orange/ (777) | templates/ja_magz/images/themes/pink/ (777) | templates/ja_magz/images/themes/red/ (777) |
Database Information :: wrote:Database statistics :: Uptime: 56906 | Threads: 2 | Questions: 1075654 | Slow queries: 0 | Opens: 8154 | Flush tables: 3 | Open tables: 3090 | Queries per second avg: 18.902 |
Extensions Discovered :: wrote:Components :: Site ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party:: Flatt (4.0) ? | Simplistic (4.0) ? | Pinter (4.0) ? | Zinc (4.0) ? | Wireframe (4.0) ? | Dark (4.0) ? | Timeless (4.0) ? | Default (4.5.9) ? |

Components :: Admin ::
Core :: com_templates (3.0.0) 1 | com_redirect (3.0.0) 1 | com_search (3.0.0) 1 | com_menus (3.0.0) 1 | com_actionlogs (3.9.0) 1 | com_plugins (3.0.0) 1 | com_privacy (3.9.0) 1 | com_content (3.0.0) 1 | com_installer (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_banners (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_weblinks (3.0.0) 0 | com_finder (3.0.0) 1 | com_messages (3.0.0) 1 | com_ajax (3.2.0) 1 | com_cache (3.0.0) 1 | com_categories (3.0.0) 1 | com_tags (3.1.0) 1 | com_newsfeeds (3.0.0) 1 | com_associations (3.7.0) 1 | com_users (3.0.0) 1 | com_login (3.0.0) 1 | com_admin (3.0.0) 1 | com_config (3.0.0) 1 | com_media (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_fields (3.7.0) 1 | com_languages (3.0.0) 1 | com_modules (3.0.0) 1 | com_checkin (3.0.0) 1 | com_joomlaupdate (3.10.1) 1 |
3rd Party:: DM Helper (1.1.0) 1 | com_easydiscuss (4.0.19) 1 | COM_DBREPLACER (6.3.9) 1 | JCH Optimize Pro (5.4.3) 1 | COM_JLEXBLOCK (3.0.0) 1 | COM_EXTRAWATCH (2.3.2682) 1 | Community (4.5.9) 1 | Community (4.5.9) 1 | jSecure Lite (1.0) 1 | COM_DMPINBOARDLITE (1.3.0) 1 | offlajn_installer (1.0) 1 | COM_REREPLACER (10.0.0) 1 | Slideshow CK - Folder (1.0.2) 1 | Slideshow CK - Hikashop (1.0.1) 1 | Slideshow CK - Flickr (1.0.0) 1 | Slideshow CK - Joomgallery (1.0.1) 1 | Slideshow CK - K2 (1.0.3) 1 | Slideshow CK - Google (1.0.0) 1 | Slideshow CK - Articles (1.0.1) 1 | Slideshow CK - Virtuemart (1.0.1) 1 | System - Slideshow CK (2.0.0) 1 | Slideshow CK (2.0.9) 1 | com_slideshowck (2.0.13) 1 | plg_installer_sh404sef (4.21.0.4206) 1 | sh404sef - Default component suppor (4.21.0.4206) ? | plg_system_shlib (0.4.0.711) 1 | sh404sef - System plugin (4.21.0.4206) 1 | sh404sef - System mobile template s (4.21.0.4206) ? | sh404sef - Analytics plugin (4.21.0.4206) 1 | PLG_SH404SEFCORE_SH404SEFSOCIAL (4.21.0.4206) 0 | sh404sef - Offline code plugin (4.21.0.4206) 1 | sh404sef - Similar urls plugin (4.21.0.4206) 1 | sh404SEF (4.21.0.4206) 1 | com_improved_ajax_login (2.6.268) 1 | com_advancedmodules (7.13.2PRO) 1 |

Modules :: Site ::
Core :: mod_breadcrumbs (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_login (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_articles_latest (3.0.0) 1 | mod_whosonline (3.0.0) 0 | mod_weblinks (3.0.0) 0 | mod_tags_popular (3.1.0) 1 | mod_banners (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_articles_category (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_search (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_random_image (3.0.0) 1 |
3rd Party:: JS Photos (4.5.9) 1 | JS Pages - Categories (4.7.7) 1 | JS Video Comments (4.5.9) 1 | JS Members Search (4.5.9) 1 | Improved AJAX Login and Register (2.6.268) 1 | JS Notifications (4.5.9) 1 | JS Videos (4.5.9) 1 | JS Nearby Events Search (4.5.9) 1 | JS Polls (4.7.7) 1 | JS Events (4.5.9) 1 | Noo Content Slider (1.2.4) 1 | JS Events Calendar (4.5.9) 1 | JS Top Members - User Points Based (4.7.7) 1 | Custom CSS (1.8) 1 | ExtraWatch Users Module (2.3.2682) 1 | JS Members (4.5.9) 1 | ExtraWatch Visitors Module (2.3.2682) 1 | JS Discussions (4.5.9) 1 | JS Groups (4.5.9) 1 | MOD_ITPSHARE (2.7) 1 | JS Hello Me (4.5.9) 1 | JW Player Module Advanced (3.11.0) 1 | Slideshow CK (2.0.9) 1 | ExtraWatch Agent Module (2.3.2682) 1 | MOD_JPAYDAY (1.0) 1 | JS Activity Stream (4.5.9) 1 | Vertical Menu (4.0.278) 1 | JS Pages (4.7.7) 1 | JS Top Members (4.5.9) 1 | JS Photo Comments (4.5.9) 1 | JS Statistics (4.5.9) 1 |

Modules :: Admin ::
Core :: mod_status (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_login (3.0.0) 1 | mod_title (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_version (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_sampledata (3.8.0) 0 | mod_latestactions (3.9.0) 1 | mod_logged (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_toolbar (3.0.0) 1 | mod_menu (3.0.0) 1 |
3rd Party:: Logged in users (2.0.1) 1 | MOD_CACHECLEANER (7.4.0) 1 |

Libraries ::
Core ::
3rd Party:: Regular Labs Library (21.4.10972) 1 |

Plugins ::
Core :: plg_fields_integer (3.7.0) 0 | plg_fields_editor (3.7.0) 0 | plg_fields_repeatable (3.9.0) 0 | plg_fields_calendar (3.7.0) 0 | plg_fields_imagelist (3.7.0) 0 | plg_fields_list (3.7.0) 0 | plg_fields_media (3.7.0) 0 | plg_fields_checkboxes (3.7.0) 0 | plg_fields_sql (3.7.0) 0 | plg_fields_text (3.7.0) 0 | plg_fields_url (3.7.0) 0 | plg_fields_textarea (3.7.0) 0 | plg_fields_usergrouplist (3.7.0) 0 | plg_fields_user (3.7.0) 0 | plg_fields_radio (3.7.0) 0 | plg_fields_color (3.7.0) 0 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_installer_webinstaller (2.1.2) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_twofactorauth_totp (3.2.0) 0 | plg_content_fields (3.7.0) 0 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_finder (3.0.0) 0 | plg_content_vote (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 0 | plg_editors-xtd_menu (3.7.0) 0 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 0 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_system_fields (3.7.0) 0 | plg_system_logrotation (3.9.0) 0 | plg_system_p3p (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_updatenotification (3.5.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_stats (3.5.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_sessiongc (3.8.6) 0 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 0 | plg_system_sef (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_privacy_consents (3.9.0) 0 | plg_privacy_content (3.9.0) 0 | plg_privacy_actionlogs (3.9.0) 0 | plg_privacy_user (3.9.0) 0 | plg_privacy_message (3.9.0) 0 | plg_search_weblinks (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_tags (3.0.0) 0 | plg_extension_joomla (3.0.0) 1 | plg_finder_weblinks (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | PLG_ACTIONLOG_JOOMLA (3.9.0) 0 | plg_quickicon_privacycheck (3.9.0) 0 | plg_quickicon_extensionupdate (3.0.0) 0 | plg_quickicon_phpversioncheck (3.7.0) 0 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_eos310 (3.10.0) ? | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_terms (3.9.0) 0 | plg_user_profile (3.0.0) 0 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 |
3rd Party:: Installer - JExtBOX Login to Read M (3.17.0) ? | plg_installer_sh404sef (4.21.0.4206) 1 | Content - EasyDiscuss (4.0.0) 0 | Content - Login to Read (1.3) 0 | Content - JExtBOX Login to Read Mor (3.20.0) ? | JomSocial Article Comments (4.5.9) 0 | PLG_PWEB_FBARTICLEIMAGES_PRO (2.0.21PRO) 1 | Content - JA Disqus Debate Echo (2.6.1) 0 | Slideshow CK - Folder (1.0.2) 1 | Slideshow CK - Hikashop (1.0.1) 1 | Slideshow CK - Flickr (1.0.0) 1 | Slideshow CK - Joomgallery (1.0.1) 1 | Slideshow CK - K2 (1.0.3) 1 | Slideshow CK - Google (1.0.0) 1 | Slideshow CK - Articles (1.0.1) 1 | Slideshow CK - Virtuemart (1.0.1) 1 | sh404sef - Default component suppor (4.21.0.4206) ? | PLG_MYFRIENDS_TITLE (4.5.9) 1 | PLG_WORDFILTER_TITLE (4.5.9) 0 | PLG_MYGROUPS_TITLE (4.5.9) 1 | PLG_MYCONTACTS_TITLE (4.5.9) 0 | PLG_FRIENDSLOCATION_TITLE (4.5.9) 0 | PLG_KUNENA_TITLE (4.5.9) 0 | PLG_MYVIDEOS_TITLE (4.5.9) 1 | PLG_WALLS_TITLE (4.5.9) 1 | PLG_MYGOOGLEADS_TITLE (4.5.9) 0 | PLG_MYRSSFEEDS_TITLE (4.5.9) 0 | PLG_COMMUNITY_MYLATESTPHOTOS_TITLE (4.5.9) 1 | PLG_MYEVENTS_TITLE (4.5.9) 1 | PLG_MUTUALFRIENDS_TITLE (4.5.9) 1 | PLG_MYARTICLES_TITLE (4.5.9) 0 | PLG_COMMUNITY_ARTICLENOTIFICATIONS_ (4.5.9) ? | PLG_TWITTER_XML_TITLE (4.5.9) 0 | PLG_MYTAGGEDVIDEOS_TITLE (4.5.9) 1 | PLG_EDITORS-XTD_MODALS (11.8.1) 1 | plg_editors-xtd_sourcerer (8.4.3) 1 | PLG_EDITORS-XTD_BETTERPREVIEW (6.4.0) 1 | PLG_EDITORS-XTD_MODULESANYWHERE (7.12.0) 1 | PLG_SYSTEM_CACHECLEANER (7.4.0) 1 | PLG_SYSTEM_MODALS (11.8.1) 1 | PLG_SYSTEM_AJAX_TOGGLER (3.3.0) 1 | PLG_SYSTEM_JQUERYEASY (4.2.2) 1 | System - Jomsocial Chat Bar (4.5.9) 0 | System - Jomsocial Facebook Connect (4.1.6) 0 | Jomsocial Update (4.0.2) 1 | PLG_SYSTEM_REREPLACER (10.0.0) 1 | System - Offlajn Params (1.2.0) 1 | System - Offlajn Params (1.2.1) 1 | PLG_SYSTEM_JCH_OPTIMIZE (5.4.3) 1 | Offlajn Joomla 3.0 compatibility (1.0) 1 | plg_system_shlib (0.4.0.711) 1 | PLG_SYSTEM_REGULARLABS (21.4.10972) 1 | T3 Framework (2.7.6) 1 | System - Slideshow CK (2.0.0) 1 | onWebChat Live Chat (2.2.2) 1 | System - CFBlockCountry (2.5) 0 | plg_system_sourcerer (8.4.3) 1 | System - jSecure Lite (1.0) 1 | plg_system_nrframework (2.4.1) 1 | Offlajn Dojo Loader (1.2.0) 1 | plg_system_akmarkdown (1.1.1) 0 | System - StarLite Notification Bar (1.2) 0 | PLG_EASYSESSIONKILLER (3.1.0) 1 | System Vertical Menu (1.0) 1 | PLG_SYSTEM_BETTERPREVIEW (6.4.0) 1 | PLG_GURUUSERPOINTS_TITLE (4.7.7) 0 | PLG_SYS_BYEBYEGENERATOR (1.11) 1 | System - JomSocial System (4.5.9) 1 | sh404sef - System plugin (4.21.0.4206) 1 | sh404sef - System mobile template s (4.21.0.4206) ? | plg_system_advancedmodules (7.13.2PRO) 1 | System - Improved AJAX Login and Re (2.6.0) ? | PLG_SYSTEM_MODULESANYWHERE (7.12.0) 1 | System - Jomsocial Redirect (4.5.9) 0 | PLG_PUBLISHERUSERPOINTS_TITLE (4.7.7) 0 | sh404sef - Analytics plugin (4.21.0.4206) 1 | PLG_SH404SEFCORE_SH404SEFSOCIAL (4.21.0.4206) 0 | sh404sef - Offline code plugin (4.21.0.4206) 1 | PLG_SH404SEFCORE_IMPORTER (1.0.1.47) 0 | sh404sef - Similar urls plugin (4.21.0.4206) 1 | Search - EasyDiscuss (4.0.1) 1 | Smart Search - EasyDiscuss Discussi (4.0.1) ? | PLG_ACTIONLOG_REREPLACER (10.0.0) 1 | PLG_ACTIONLOG_DBREPLACER (6.3.9) 1 | plg_actionlog_advancedmodules (7.13.2PRO) 1 | Easydiscuss Profile (1.0.0) 1 | User - Improved Profile (2.6.0) 1 | User - Jomsocial User (4.5.9) 1 | User - EasyDiscuss Users (4.0.1) 1 | plg_editors_tinymce (4.5.12) 1 | plg_editors_codemirror (5.60.0) 1 | plg_editors_akmarkdown (1.1.1) 1 |
Templates Discovered :: wrote:Templates :: Site :: ja_magz (1.0.2) 1 | beez3 (3.1.0) 1 | protostar (1.0) 1 |
Templates :: Admin :: isis (1.0) 1 | hathor (3.0.0) 1 |
Last edited by toivo on Thu Jan 27, 2022 2:23 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

undercash
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Fri Dec 12, 2008 12:24 am
Contact:

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by undercash » Thu Jan 20, 2022 11:23 am

voila, I used the debugging script, pretty nice actually

Last night I also tried on other servers I got and I didn't even know about it, but I have the same issue. Can't upgrade component.
All my late servers run pretty much the same config, ubuntu 20.04lts with php7.3 or 7.4 / fpm and mysql8.
I guess my Joomla has a problem but it's first time in 8 years I made the site that I can't upgrade something properly (last time I actually upgraded was in April 2021)

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9745
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by AMurray » Thu Jan 27, 2022 12:56 am

This is beyond my expertise....

Closing comments from me: FPA shows memory limit 1024M not 4096M.......so whatever script is exceeding memory seems to need more than 1024M

Also if you change PHP versions you probably have to adjust that memory_limit in PHP.ini for each PHP version (which may have its own unique php.ini file).

You should definitely be using Joomla Update because unzipping files and uploading to the site is only half the task; what about the relevant database updates the Update process will do - if you only extract and copy the files, you're leaving out the database update part, which the Joomla Update process takes care of.

Other issues noted but not necessarily concerned with the problem at hand - configuration.php 644 should be 444 and folders should be 755 not 777.
Regards - A Murray
General Support Moderator

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17445
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Upgrading component: PHP Fatal error: Allowed memory size exhausted

Post by toivo » Thu Jan 27, 2022 4:16 am

undercash wrote:
Wed Jan 19, 2022 8:35 pm
Allowed memory size of 2147483648 bytes exhausted (tried to allocate 86016 bytes) in /home/user/example.com/libraries/src/Table/Nested.php on line 1340
The function where the issue occurs is described as "Method to recursively rebuild the whole nested set tree." This function rebuild() processes database tables and the key word here is 'recursively', the operation is repeated until some end condition is met. If there is something wrong in the links connecting the database rows, links that create the tree structure, this process can and has effectively run out of memory.

In other words, some important database table required by the component in question or the installation and upgrade process is corrupted. How could this have happened? Even though some random errors can occur, often there is a logical explanation.

undercash wrote:
Wed Jan 19, 2022 8:35 pm
I m assuming this is not an issue with joomla. I m not updating joomla using the admin panel I prefer to untar file directly on the root.
Bingo! The recommended update method for Joomla is the Joomla! Update component. In addition to updating the filesystem, the Joomla! Update component runs important scripts to do with the database. If those scripts are not run between different versions, the database schema will not get updated.

Go to Extensions - Manage - Database. Is the message 'Database table structure is up to date' or something else?

Does the component in question have some utility that could check the integrity of the database tables it uses?

Do you happen to have a full backup before the last update was done? Was the system working then or did the issues with installations and updates start before that? If there is a full backup, it could be restored to a virtual host in Wampserver, for example, and used for identifying the root cause of the issue with the data.
Toivo Talikka, Global Moderator


Locked

Return to “General Questions/New to Joomla! 3.x”