After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

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
Post Reply
Pallieguy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Apr 16, 2021 5:41 pm

After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by Pallieguy » Fri Apr 16, 2021 5:49 pm

Hi everyone,

I inherited a site that runs Joomla and was not involved in the setup or configuring of it so I'm a complete newbie in that regard. I recently upgraded to 3.9.26 via the admin panel and since I have whenever I make a page using php that has a syntax error the page will try to load until it times out. Before the upgrade if there was a syntax error I would get an immediate display of the php error script. I haven't changed any config settings at all and the only thing that is different is the Joomla version.

I don't even know where to look to try and debug this. Nor do I know how to do a rollback to an earlier Joomla version to see if that fixes it. Any help is appreciated.
Last edited by toivo on Sat Apr 17, 2021 4:37 am, edited 1 time in total.
Reason: mod note: moved, not related to 3.x Performance

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

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by AMurray » Fri Apr 16, 2021 10:39 pm

To do a roll back, you would do so by restoring a backup of the site. It sounds like you went ahead with the update despite the system saying "It is highly recommended that you make a backup before proceeding with this update".

You would normally use something like Akeeba Backup, to back up the site; then you can restore it very easily with Akeeba Kickstart - or from within Akeeba itself, from one of the previous backup archives. Put Akeeba in your web "toolbox" for next time. You could however, try restoring a backup from your hosting admin utility (e.g. cPanel) which usually provides some sort of backup tool or alternatively ask your web-host to restore the site.

Another thing before updating, make sure all extensions are up to date and that they work with the version of Joomla you're updating to, and that all is compatible with your PHP version.

To provide further configuration and system information, please make use of the Forum Post Assistant, as advised in the red box at top of screen. Refer to https://forumpostassistant.github.io/docs/
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

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

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by toivo » Sat Apr 17, 2021 4:43 am

Pallieguy wrote:
Fri Apr 16, 2021 5:49 pm
I recently upgraded to 3.9.26 via the admin panel and since I have whenever I make a page using php that has a syntax error the page will try to load until it times out.
What do you mean by "make a page using PHP"? Do you use a third party extension to run PHP inside Joomla articles?

As requested by @AMurray, please post the FPA results.
Toivo Talikka, Global Moderator

Pallieguy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Apr 16, 2021 5:41 pm

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by Pallieguy » Mon Apr 19, 2021 6:27 pm

I apparently didn't turn on notifications for replies, sorry.

@AMurray; I did see that warning and I run daily backups of the site, but I was unaware if joomla had an in-built system for rollbacks. Before the update I did check compatibility of all the extensions and ran the update on the test site first to make sure there were no issues there. There was nothing that said it was incompatible with what I had and the test site loaded everything without error. The live site also runs without issue, the issue I'm facing only reveled itself when I tried making a new PHP tool.

@tovio; I mean opening a text editor and coding PHP script then uploading it to the site via ftp as opposed to making a menu/article via Joomla's admin section. These PHP scripts will include the Joomla header, footer, and menus relevant to their section of the site. Once the php script is complete and working properly I will make a menu item in Joomla that is a URL reference pointing to my php page. This step is where I'm getting the new timeouts instead of a php error report.

FPA output (edited to remove full path identifiers):
Forum Post Assistant (v1.6.2) : 19-Apr-2021 wrote:
Last PHP Error(s) Reported :: wrote:[19-Apr-2021 13:20:40 America/Chicago] PHP Fatal error: Maximum execution time of 300 seconds exceeded in /.../libraries/src/Filesystem/Path.php on line 178
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.26-Stable (Amani) 13-April-2021
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 120 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.26: Yes | Database Supports J! 3.9.26: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.19.0-14-amd64 | Technology: x86_64 | Web Server: Apache/2.4 | Encoding: gzip, deflate, br | System TMP Writable: Yes | Free Disk Space : 1817.49 GiB |

PHP Configuration :: Version: 7.4.13 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: 1 | Error Reporting: 30711 | Log Errors To: /.../logs/php_log.log | Last Known Error: 19th April 2021 13:20:40. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 50M | Max. POST Size: 50M | Max. Input Time: 60 | Max. Execution Time: 300 | Memory Limit: 512M

Database Configuration :: Version: 5.5.5-10.1.41-MariaDB-0+deb10u2 (Client:mysqlnd 7.4.13) | Database Size: 821.01 MiB | #of Tables with config prefix: 152 | #of other Tables: 159 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.13) | date (7.4.13) | libxml (7.4.13) | openssl (7.4.13) | pcre (7.4.13) | zlib (7.4.13) | filter (7.4.13) | hash (7.4.13) | Reflection (7.4.13) | SPL (7.4.13) | session (7.4.13) | standard (7.4.13) | sodium (7.4.13) | apache2handler (7.4.13) | mysqlnd (mysqlnd 7.4.13) | PDO (7.4.13) | xml (7.4.13) | apcu (5.1.19) | bcmath (7.4.13) | bz2 (7.4.13) | calendar (7.4.13) | ctype (7.4.13) | curl (7.4.13) | dom (20031129) | mbstring (7.4.13) | FFI (7.4.13) | fileinfo (7.4.13) | ftp (7.4.13) | gd (7.4.13) | gettext (7.4.13) | gmp (7.4.13) | iconv (7.4.13) | igbinary (3.1.6) | imagick (3.4.4) | imap (7.4.13) | intl (7.4.13) | json (7.4.13) | ldap (7.4.13) | exif (7.4.13) | mongodb (1.9.0) | msgpack (2.1.2) | mysqli (7.4.13) | odbc (7.4.13) | pdo_dblib (7.4.13) | pdo_mysql (7.4.13) | PDO_ODBC (7.4.13) | pdo_pgsql (7.4.13) | pdo_sqlite (7.4.13) | pgsql (7.4.13) | apc (5.1.17) | pdo_sqlsrv (5.8.0+12930) | sqlsrv (5.8.0+12930) | posix (7.4.13) | pspell (7.4.13) | readline (7.4.13) | redis (5.3.2) | respect (1.1.1) | shmop (7.4.13) | SimpleXML (7.4.13) | soap (7.4.13) | sockets (7.4.13) | sqlite3 (7.4.13) | sysvmsg (7.4.13) | sysvsem (7.4.13) | sysvshm (7.4.13) | tidy (7.4.13) | tokenizer (7.4.13) | whelps (1.0.2) | xmlreader (7.4.13) | xmlwriter (7.4.13) | xsl (7.4.13) | zip (1.15.6) | Phar (7.4.13) | memcached (3.1.5) | ionCube Loader (10.4.0) | Zend OPcache (7.4.13) | Zend Engine (3.4.0) |
Potential Missing Extensions ::
Disabled Functions :: leak | posix_getpwuid | posix_getpwnam | posix_getgrid | posix_getgrnam | posix_getgroups |

Switch User Environment :: PHP CGI: No | Server SU: No | PHP SU: No | Potential Ownership Issues: No

Apache Modules :: core | mod_so | mod_watchdog | http_core | mod_log_config | mod_logio | mod_version | mod_unixd | prefork | mod_mosso | mod_auth_basic | mod_authn_file | mod_authz_host | mod_authz_user | mod_authz_groupfile | mod_authz_core | mod_authn_core | mod_access_compat | mod_include | mod_env | mod_expires | mod_headers | mod_setenvif | mod_mime | mod_status | mod_autoindex | mod_negotiation | mod_dir | mod_alias | mod_rewrite | mod_actions | mod_unique_id | mod_deflate | mod_remoteip | mod_slotlimit | mod_filter | mod_php7 | Apache/2.4 |
Potential Missing Modules :: mod_security | mod_evasive | mod_dosevasive | mod_ssl | mod_qos | mod_userdir |
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/ (---) |

Elevated Permissions (First 10) :: administrator/components/com_comprofiler/ (775) | administrator/components/com_comprofiler/controller/ (775) | administrator/components/com_comprofiler/database/ (775) | administrator/components/com_comprofiler/language/ (775) | administrator/components/com_comprofiler/language/en-GB/ (775) | administrator/components/com_comprofiler/library/ (775) | administrator/components/com_comprofiler/library/cb/ (775) | administrator/components/com_comprofiler/library/cb/sql/ (775) | administrator/components/com_comprofiler/library/cb/xml/ (775) | administrator/components/com_comprofiler/library/pcl/ (775) |
Database Information :: wrote:Database statistics :: Uptime: 4622886 | Threads: 22 | Questions: 2740925080 | Slow queries: 1710 | Opens: 1338732 | Flush tables: 1 | Open tables: 27772 | Queries per second avg: 592.903 |
Extensions Discovered :: wrote:Components :: Site ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party::

Components :: Admin ::
Core :: com_admin (3.0.0) 1 | com_banners (3.0.0) 1 | com_cache (3.0.0) 1 | com_categories (3.0.0) 1 | com_checkin (3.0.0) 1 | com_config (3.0.0) 1 | com_content (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_actionlogs (3.9.0) 1 | com_finder (3.0.0) 1 | com_installer (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_languages (3.0.0) 1 | com_login (3.0.0) 1 | com_ajax (3.2.0) 1 | com_media (3.0.0) 1 | com_menus (3.0.0) 1 | com_messages (3.0.0) 1 | com_modules (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_plugins (3.0.0) 1 | com_redirect (3.0.0) 1 | com_search (3.0.0) 1 | com_templates (3.0.0) 1 | com_users (3.0.0) 1 | com_weblinks (3.7.0) 1 | com_tags (3.1.0) 1 | com_contenthistory (3.2.0) 1 | com_postinstall (3.2.0) 1 | com_associations (3.7.0) 1 | com_fields (3.7.0) 1 | com_privacy (3.9.0) 1 |
3rd Party:: comprofiler (2.5.0) 1 | com_docman (3.5.8) 1 | com_xmap (2.3.4) 1 | com_docman_import (2.1.2) 1 | COM_FPSS (3.12.0) 1 | Maximenu CK (9.0.13) 1 | com_maximenuck (9.0.14) 1 |

Modules :: Site ::
Core :: mod_articles_archive (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_tags_similar (3.1.0) 1 | mod_feed (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_search (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_weblinks (3.7.0) 1 | mod_whosonline (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party:: Community Builder Login module (2.5.0) 1 | Community Builder Workflows module (2.5.0) 1 | Community Builder Online module (2.5.0) 1 | mod_docman_documents (3.5.8) 1 | mod_docman_categories (3.5.8) 1 | Simple Spotlight (3.1) 1 | Maximenu CK (9.0.13) 1 | Maximenu CK (8.0.13) 1 | Frontpage Slideshow (by JoomlaWorks (3.12.0) ? | Social Media Icon Links (1.6.0) 1 | Affiliated Groups (1.0.0) 1 | VS Image Rotator (1.1.3) 1 |

Modules :: Admin ::
Core :: mod_custom (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_feed (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_login (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_menu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_status (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_version (3.0.0) 1 |
3rd Party:: Frontpage Slideshow Statistics (adm (3.12.0) ? | Community Builder Admin module (2.5.0) 1 |

Libraries ::
Core ::
3rd Party:: Community Builder Library (2.5.0) 1 | ExtJS (3.4) 1 |

Plugins ::
Core :: plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_content_emailcloak (3.0.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_geshi (2.5.0) 0 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_loadmodule (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_weblink (3.7.0) 0 | plg_extension_joomla (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_weblinks (3.7.0) 1 | plg_finder_tags (3.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_weblinks (3.7.0) 1 | plg_search_tags (3.0.0) 0 | plg_system_cache (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_p3p (3.0.0) 1 | plg_system_redirect (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 0 | plg_system_fields (3.7.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_privacyconsent (3.9.0) 0 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 0 | plg_system_weblinks (3.7.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | PLG_ACTIONLOG_JOOMLA (3.9.0) 1 |
3rd Party:: Content - Content Restriction (1.1.0 Prealph) 1 | plg_content_doclink (3.5.8) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | plg_editors_codemirror (5.60.0) 1 | plg_editors_tinymce (4.5.12) 1 | Editor - RedactorJS (1.1) 1 | plg_editors-xtd_doclink (3.5.8) 1 | Button - Readmore.js (1.0) 1 | plg_finder_docman (3.5.8) 1 | plg_search_docman (3.5.8) 1 | plg_system_joomlatools (3.4.12) 1 | plg_system_docman_redirect (2.1.2) 1 | PLG_SYSTEM_JQUERYEASY (1.5.6) 1 | System - Maximenu CK Mobile (1.2.2) 0 | Community Builder System plugin (2.5.0) 1 | Readmore.js System Plugin (1.0.3) 1 | PLG_SYSTEM_SSLREDIRECT (0.11.0) 1 | plg_sys_topofthepage (2.0) 1 | plg_system_joomlatoolsupdater (1.1.0) 1 | plg_system_joomlatoolsscheduler (1.0.0) 1 | User - MediaWiki Login (2.7) 0 | Xmap - Content Plugin (2.0.4) 0 | Xmap - Kunena Plugin (3.0.0) 0 | Xmap - Mosets Tree Plugin (2.0.2) 0 | Xmap - SobiPro Plugin (2.0.2) 0 | Xmap - Virtuemart Plugin (2.0.3) 0 | Xmap - WebLinks Plugin (2.0.1) 0 | XMAP_PLUGIN_K2 (1.3) 0 |
Templates Discovered :: wrote:Templates :: Site :: atomic (2.5.0) 1 | beez5 (2.5.0) 1 | beez_20 (2.5.0) 1 | login (1.0.2) 1 | beez3 (3.1.0) 1 | protostar (1.0) 1 |
Templates :: Admin :: bluestork (2.5.0) 1 | hathor (3.0.0) 1 | isis (1.0) 1 |

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

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by toivo » Mon Apr 19, 2021 9:34 pm

According to the FPA results, the directive error_reporting is 30711. This value is translated as E_ALL & ~E_NOTICE & ~E_STRICT. Set the level of error reporting in the Global Configuration as 'Maximum' and all PHP notices and Strict messages will also get displayed.

The FPA results include templates from Joomla 2.5, which can be uninstalled.

The last PHP error in the FPA results comes from a line about a relative path. Does your PHP code have try catch blocks when calling methods like check()?

Code: Select all

	public static function check($path)
	{
		if (strpos($path, '..') !== false)
		{
			// Don't translate
			throw new \Exception(
				sprintf(
					'%s() - Use of relative paths not permitted',
					__METHOD__
				),
				20
			);
		}
Toivo Talikka, Global Moderator

Pallieguy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Apr 16, 2021 5:41 pm

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by Pallieguy » Wed Apr 21, 2021 7:18 pm

I tried setting error reporting to 'Maximum' and still got nothing other than the timeout associated to the path check. Unfortunately, the site was built in 2003 and I can't leave the reporting on as the Notices for deprecated code flood the older pages.

The only things that's different now, is that when my current piece of code tries to run a PDO execute I'm getting a second timeout: /.../modules/mod_menu/tmpl/default.php on line 76

Code: Select all

switch ($item->type) :
		case 'separator':
		case 'component':
		case 'heading':
		case 'url':
			require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item->type);
			break;

		default:
			require JModuleHelper::getLayoutPath('mod_menu', 'default_url');
			break;
	endswitch;
Which is the first require

Nothing in the code I've written is calling check(), so there are no trys associated to it.

Pallieguy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Apr 16, 2021 5:41 pm

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by Pallieguy » Thu Apr 22, 2021 6:10 pm

Found the source of the problem thanks to the second timeout that was showing up from the SQL failures.

3.9.26 changed /.../libraries/src/Helper/ModuleHelper.php starting at line 305. It used to be:

Code: Select all

// Build the template and base path for the layout
$tPath = JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php';
$bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php';
$dPath = JPATH_BASE . '/modules/' . $module . '/tmpl/default.php';
but is now:

Code: Select all

$dPath = JPATH_BASE . '/modules/' . $module . '/tmpl/default.php';

try
{
	// Build the template and base path for the layout
	$tPath = \JPath::check(JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php');
	$bPath = \JPath::check(JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php');
}
catch (\Exception $e)
{
	// On error fallback to the default path
	return $dPath;
}
This is the call to check that is timing out infinitely. No idea why, but removing the \JPath::check on the $tPath and $bPath definitions makes everything work once again as it did before the update.

frostmakk
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Sun Dec 28, 2014 9:30 am
Location: Stavanger, Norway

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by frostmakk » Thu Apr 22, 2021 6:58 pm

Since this apparently has something to do with templates, I would first of all uninstall and get rid of all the ancient and not compatible templates you have on your site.

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

Re: After upgrading to 3.9.26 my pages timeout when there is a syntax error in my php

Post by toivo » Thu Apr 22, 2021 9:26 pm

Please note that modifications to the Joomla core are neither recommended nor supported.

The next version update will overwrite the modification. Instead, update the templates as recommended by @frostmakk and refactor your custom code.
Toivo Talikka, Global Moderator


Post Reply

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