504 Gateway Timeout and .htaccess Topic is solved

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
adamus85
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 15, 2024 8:29 am

504 Gateway Timeout and .htaccess

Post by adamus85 » Wed May 22, 2024 3:52 am

Hi, I've recently upgraded an old version 3 site to 5.1.0 and PHP 8.1.28. I did this locally using WAMP and tested before uploading to my host. All went well for a few weeks then started getting timeouts on the site with 504 Gateway timeout errors in both the front end and administrator, or very slow performance.

My host has been assisting but is unable to determine the root cause. He made some changes to .htaccess but the problem persisted. If the .htaccess file is removed, the site front page and administator backend load without timing out and both seems responsive, however front end site links don't work (SEF related I guess?) Replacing the .htaccess file works for a while and all links work, but then slows down and starts giving 504 gateway timeout errors again.

Things I have done to try and resolve:
-Remove image gallery banner and other content from front page to reduce load times.
-confirm local WAMP version of site still working correctly
-looked for any large log files that may be being created
-looked for components that may be causing an issue

More info (may be unrelated):
The old v3 site was having problems with phocadownload component not displaying pdf files correctly - was displaying them as garbled ascii contents. As part of the upgrade I removed the component and related plugin, reinstalled a later version, then updated the necessary database tables to restore the indexed files. This worked well on local install and also on the live site, but then the problem reoccured shortly before getting the gateway timeouts.

Any assistance greatly appreciated!


FPA
Forum Post Assistant (v1.6.7) : 22-May-2024 wrote:
Last PHP Error(s) Reported :: wrote:[21-May-2024 04:02:03 UTC] PHP Warning: Failed to set memory limit to 4 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
Basic Environment :: wrote:Joomla! Instance :: Joomla! 5.1.0-Stable (Kudumisha) 16-April-2024
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: true | Cache: true | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: true | FTP Layer: N/A | Proxy: false | LiveSite: Is Not Empty | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: maximum | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 5.1.0: Yes | Database Supports J! 5.1.0: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.18.0-552.el8.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br, zstd | System TMP Writable: Yes | Free Disk Space : 202.05 GiB |

PHP Configuration :: Version: 8.1.28 | PHP API: fpm-fcgi | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 22527 | Log Errors To: /home/hamilton/logs/php_log | Last Known Error: 21st May 2024 04:02:03. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 64M | Max. POST Size: 64M | Max. Input Time: 600 | Max. Execution Time: 600 | Memory Limit: 4096M

Database Configuration :: Version: 10.6.18-MariaDB (Client:mysqlnd 8.1.28) | Database Size: 473.54 MiB | #of Tables with config prefix:  113 | #of other Tables:  68 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (8.1.28) | date (8.1.28) | libxml (8.1.28) | openssl (8.1.28) | pcre (8.1.28) | zlib (8.1.28) | filter (8.1.28) | hash (8.1.28) | json (8.1.28) | Reflection (8.1.28) | SPL (8.1.28) | session (8.1.28) | standard (8.1.28) | cgi-fcgi (8.1.28) | ssh2 (1.4.1) | bz2 (8.1.28) | calendar (8.1.28) | ctype (8.1.28) | curl (8.1.28) | dom (20031129) | mbstring (8.1.28) | fileinfo (8.1.28) | ftp (8.1.28) | gd (8.1.28) | gettext (8.1.28) | iconv (8.1.28) | exif (8.1.28) | mysqlnd (mysqlnd 8.1.28) | PDO (8.1.28) | Phar (8.1.28) | posix (8.1.28) | shmop (8.1.28) | SimpleXML (8.1.28) | sockets (8.1.28) | sqlite3 (8.1.28) | sysvmsg (8.1.28) | sysvsem (8.1.28) | sysvshm (8.1.28) | tokenizer (8.1.28) | xml (8.1.28) | xmlwriter (8.1.28) | xsl (8.1.28) | mysqli (8.1.28) | pdo_mysql (8.1.28) | pdo_sqlite (8.1.28) | xmlreader (8.1.28) | zip (1.22.3) | imagick (3.7.0) | Zend OPcache (8.1.28) | Zend Engine (4.1.28) |
Potential Missing Extensions ::

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

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 256126 | Threads: 22 | Questions: 33262943 | Slow queries: 205 | Opens: 19121 | Open tables: 2000 | Queries per second avg: 129.869 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party:: WF_XHTMLXTRAS_TITLE (2.6.36) ? | WF_VISUALCHARS_TITLE (2.6.36) ? | WF_VISUALBLOCKS_TITLE (2.6.36) ? | WF_TEXTCASE_TITLE (2.6.36) ? | WF_TABLE_TITLE (2.6.36) ? | WF_STYLESELECT_TITLE (2.6.36) ? | WF_STYLE_TITLE (2.6.36) ? | WF_SPELLCHECKER_TITLE (2.6.36) ? | WF_SOURCE_TITLE (2.6.36) ? | WF_SEARCHREPLACE_TITLE (2.6.36) ? | WF_PRINT_TITLE (2.6.36) ? | WF_PREVIEW_TITLE (2.6.36) ? | WF_NONBREAKING_TITLE (2.6.36) ? | WF_MEDIA_TITLE (2.6.36) ? | WF_LISTS_TITLE (2.6.36) ? | WF_LINK_TITLE (2.6.36) ? | WF_LAYER_TITLE (2.6.36) ? | WF_KITCHENSINK_TITLE (2.6.36) ? | WF_INLINEPOPUPS_TITLE (2.6.36) ? | WF_IMGMANAGER_TITLE (2.6.36) ? | WF_HR_TITLE (2.6.36) ? | WF_FULLSCREEN_TITLE (2.6.36) ? | WF_FORMATSELECT_TITLE (2.6.36) ? | WF_FONTSIZESELECT_TITLE (2.6.36) ? | WF_FONTSELECT_TITLE (2.6.36) ? | WF_FONTCOLOR_TITLE (2.6.36) ? | WF_EMOTIONS_TITLE (2.6.36) ? | WF_DIRECTIONALITY_TITLE (2.6.36) ? | WF_CONTEXTMENU_TITLE (2.6.36) ? | WF_CLIPBOARD_TITLE (2.6.36) ? | WF_CLEANUP_TITLE (2.6.36) ? | WF_CHARMAP_TITLE (2.6.36) ? | WF_BROWSER_TITLE (2.6.36) ? | WF_AUTOSAVE_TITLE (2.6.36) ? | WF_ARTICLE_TITLE (2.6.36) ? | WF_ANCHOR_TITLE (2.6.36) ? | WF_LINK_SEARCH_TITLE (2.6.36) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.6.36) ? | WF_POPUPS_WINDOW_TITLE (2.6.36) ? | WF_LINKS_JOOMLALINKS_TITLE (2.6.36) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.6.36) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.6.36) ? | WF_AGGREGATOR_VIMEO_TITLE (2.6.36) ? | WF_AGGREGATOR_VINE_TITLE (2.6.36) ? | WF_AGGREGATOR_[youtube]_TITLE (2.6.36) ? |

Components :: Admin ::
Core :: com_wrapper (4.0.0) 1 | com_workflow (4.0.0) 1 | com_users (4.0.0) 1 | com_templates (4.0.0) 1 | com_tags (4.0.0) 1 | com_search (3.0.0) 1 | com_scheduler (4.1.0) 1 | com_redirect (4.0.0) 1 | com_privacy (3.9.0) 1 | com_postinstall (4.0.0) 1 | com_plugins (4.0.0) 1 | com_newsfeeds (4.0.0) 1 | com_modules (4.0.0) 1 | com_messages (4.0.0) 1 | com_menus (4.0.0) 1 | com_media (3.0.0) 1 | com_mails (4.0.0) 1 | com_login (4.0.0) 1 | com_languages (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_installer (4.0.0) 1 | com_guidedtours (4.3.0) 1 | com_finder (4.0.0) 1 | com_fields (4.0.0) 1 | com_cpanel (4.0.0) 1 | com_contenthistory (4.0.0) 1 | com_content (4.0.0) 1 | com_config (4.0.0) 1 | com_checkin (4.0.0) 1 | com_categories (4.0.0) 1 | com_cache (4.0.0) 1 | com_banners (4.0.0) 1 | com_associations (4.0.0) 1 | com_ajax (4.0.0) 1 | com_admin (4.0.0) 1 | com_actionlogs (3.9.0) 1 |
3rd Party:: com_phocadownload (5.0.2) 1 | com_jckman (6.4.4) 1 | JoomlaCK Pugin Manager Control Pane (1.0.0 DEVELOP) ? | Unknown (administrator/components/com_jckman/editor/import.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/scayt.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/audio.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/autogrow.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/colorbutton.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/colordialog.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/contextmenu.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/dialog.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/editingblock.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/enterkey.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/find.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/font.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/image.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/imagedragndrop.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/indent.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/jabout.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/jfilebrowser.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/jflash.xml) (0.1) ? | JTreeLink (1.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/link.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/pastefromword.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/pastetext.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/removeformat.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/replace.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/scayt.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/showblocks.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/showborders.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/smiley.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/sourcearea.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/tab.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/templates.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/toolbar.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/undo.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/video.xml) (0.1) ? | Unknown (administrator/components/com_jckman/editor/plugins/wysiwygarea.xml) (0.1) ? | Droppics (3.1.0_light) ? | Content - droppics (3.1.0_light) 0 | Editors-xtd - Droppics (3.1.0_light) 0 | Dropfiles (5.0.0_light) ? | System - Dropfiles (5.0.0_light) 0 | plg_jce_links_dropfiles (2.6.0) 0 | K2 - dropfiles (5.0.0_light) 0 | Content - dropfiles (5.0.0_light) 0 | Editors-xtd - Dropfiles (5.0.0_light) 0 | DropEditor (2.5.0) ? | System - Dropeditor (2.5.0) 0 | Joomunited updater (1.0.0) 0 | Content - Dropeditor (2.5.0) 0 | Editor - DropEditor (2.5.0) 0 | Droppics (3.1.0_light) ? | Content - droppics (3.1.0_light) 0 | Editors-xtd - Droppics (3.1.0_light) 0 | Dropfiles (5.0.0_light) ? | System - Dropfiles (5.0.0_light) 0 | plg_jce_links_dropfiles (2.6.0) 0 | K2 - dropfiles (5.0.0_light) 0 | Content - dropfiles (5.0.0_light) 0 | Editors-xtd - Dropfiles (5.0.0_light) 0 | com_akeebabackup (9.9.3) 1 | Slideshow CK (2.5.4) 1 | com_slideshowck (2.5.5) 1 |

Modules :: Site ::
Core :: mod_wrapper (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_tags_popular (3.1.0) 1 | mod_syndicate (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_search (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_login (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_footer (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_archive (3.0.0) 1 |
3rd Party:: MOD_LATESTNEWSENHANCED (4.12.0) 1 | Slideshow CK (2.5.4) 1 |

Modules :: Admin ::
Core :: mod_version (3.0.0) 1 | mod_user (4.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_title (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_quickicon (3.0.0) 1 | mod_privacy_status (4.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_post_installation_messages (4.0.0) 1 | mod_popular (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_messages (4.0.0) 1 | mod_menu (3.0.0) 1 | mod_loginsupport (4.0.0) 1 | mod_login (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_latest (3.0.0) 1 | mod_guidedtours (4.3.0) 1 | mod_frontend (4.0.0) 1 | mod_feed (3.0.0) 1 | mod_custom (3.0.0) 1 |
3rd Party:: JoomlaCK Pugin Manager Control Pane (1.0.0 DEVELOP) ? |

Libraries ::
Core ::
3rd Party:: file_fof40 (4.1.4) ? |

Plugins ::
Core :: plg_workflow_publishing (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_messages (4.0.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_languages (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_user_token (3.9.0) 1 | plg_user_terms (3.9.0) 0 | plg_user_profile (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_task_updatenotification (5.0.0) 1 | plg_task_site_status (4.1) 1 | plg_task_sessiongc (5.0.0) 1 | plg_task_rotatelogs (5.0.0) 1 | plg_task_requests (4.1) 1 | plg_task_privacyconsent (5.0.0) 1 | plg_task_globalcheckin (5.0.0) 1 | plg_task_deleteactionlogs (5.0.0) 1 | plg_task_check_files (4.1) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_task_notification (4.1) 1 | plg_system_stats (3.5.0) 0 | plg_system_skipto (4.0.0) 1 | plg_system_shortcut (4.2.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_schemaorg (5.0.0) 1 | plg_system_schedulerunner (4.1) 1 | plg_system_remember (3.0.0) 1 | plg_system_redirect (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_logout (3.0.0) 1 | plg_system_log (3.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_jooa11y (4.2.0) 1 | plg_system_httpheaders (4.0.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_guidedtours (4.3.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_actionlogs (3.9.0) 0 | plg_system_accessibility (4.0.0) 0 | plg_search_tags (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_categories (3.0.0) 1 | plg_schemaorg_recipe (5.0.0) 1 | plg_schemaorg_person (5.0.0) 1 | plg_schemaorg_organization (5.0.0) 1 | plg_schemaorg_jobposting (5.0.0) 1 | plg_schemaorg_event (5.0.0) 1 | plg_schemaorg_custom (5.1.0) 1 | plg_schemaorg_book (5.0.0) 1 | plg_schemaorg_blogposting (5.0.0) 1 | plg_schemaorg_article (5.1.0) 1 | plg_sampledata_multilang (4.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_eos (4.4.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_multifactorauth_yubikey (3.2.0) 0 | plg_multifactorauth_webauthn (4.2.0) 0 | plg_multifactorauth_totp (3.2.0) 0 | plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_email (4.2.0) 0 | plg_media-action_rotate (4.0.0) 1 | plg_media-action_resize (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_installer_webinstaller (4.0.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_override (4.0.0) 1 | plg_installer_folderinstaller (3.6.0) 0 | plg_finder_tags (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_categories (3.0.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_extension_finder (4.0.0) 1 | 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_menu (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_finder (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_emailcloak (3.0.0) 0 | plg_content_confirmconsent (3.9.0) 0 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_behaviour_compat (5.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_api-authentication_token (4.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_actionlog_joomla (3.9.0) 1 |
3rd Party:: System - Dropfiles (5.0.0_light) 0 | System - Dropeditor (2.5.0) 0 | PLG_QUICKICON_AKEEBABACKUP (9.9.3) 1 | K2 - dropfiles (5.0.0_light) 0 | plg_jce_links_dropfiles (2.6.0) 0 | Joomunited updater (1.0.0) 0 | plg_editors-xtd_phocadownload (4.0.4) 1 | Editors-xtd - Droppics (3.1.0_light) 0 | Editors-xtd - Dropfiles (5.0.0_light) 0 | plg_editors_tinymce (6.8.3) 1 | Editor - DropEditor (2.5.0) 0 | plg_editors_codemirror (6.0.0) 1 | plg_content_phocadownload (4.0.6) 1 | Content - droppics (3.1.0_light) 0 | Content - dropfiles (5.0.0_light) 0 | Content - Dropeditor (2.5.0) 0 |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |
Last edited by toivo on Wed May 22, 2024 6:02 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2794
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: 504 Gateway Timeout and .htaccess

Post by ceford » Wed May 22, 2024 9:53 pm

What is in live $live_site in your configuration.php file? Change its permissions to 644 and then edit it with a text editor - $live_site is normally an empty string.

adamus85
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 15, 2024 8:29 am

Re: 504 Gateway Timeout and .htaccess

Post by adamus85 » Thu May 23, 2024 12:17 am

ceford wrote: Wed May 22, 2024 9:53 pm What is in live $live_site in your configuration.php file? Change its permissions to 644 and then edit it with a text editor - $live_site is normally an empty string.
Thanks for the reply, it's the live URL of the site.
public $live_site = 'http://www.hamiltonwheelers.com';

As suggested by Akeeba Kickstart I set this to blank when running locally via WAMP, but as part of the restore process I set it to the live URL.

I've tried setting it to an empty string as a test as advised.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31084
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: 504 Gateway Timeout and .htaccess

Post by Per Yngve Berg » Thu May 23, 2024 3:39 am

Set

public $live_site ="";

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2794
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: 504 Gateway Timeout and .htaccess

Post by ceford » Thu May 23, 2024 5:20 am

Your site keeps delivering large images and interacts with external sites - waiting for any one of those could cause a timeout. I think you should review the purpose of your site and run some performance tools - pagespeed.web.dev would be a good start.

adamus85
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 15, 2024 8:29 am

Re: 504 Gateway Timeout and .htaccess

Post by adamus85 » Thu May 23, 2024 1:14 pm

ceford wrote: Thu May 23, 2024 5:20 am Your site keeps delivering large images and interacts with external sites - waiting for any one of those could cause a timeout. I think you should review the purpose of your site and run some performance tools - pagespeed.web.dev would be a good start.
Thanks for your help! My host pointed me to some logs that showed it was repeatedly trying to reference a pdf file configured using the phocadownload component, and this was the main cause of the timeout. Once I removed that file it started loading again.

I then took your advice and used that pagespeed.web.dev tool - I wasn't aware of these and it's very useful. I had an image that I had drag n dropped that was being served from an external site which I didn't realise. I've fixed that, resized any images being loaded and it's a big improvement, up from 21 to 41 on their performance metric with more to come.

I am attempting to facade load the [youtube] iframes which should help - I tried a plugin which brought down the whole site and I thought I would have to restore from backup, but I managed to delete the plugin manually. I will try another method for facade loading videos.

I still have another issue to resolve with phocadownload not rendering my pdfs before I'm 100% up and running but your help has saved me, thanks again.


Post Reply

Return to “Administration Joomla! 5.x”