link to local HTML files triggered download instead of opening the page

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.
Post Reply
ossoftix
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 15, 2019 12:13 pm

link to local HTML files triggered download instead of opening the page

Post by ossoftix » Thu Aug 15, 2019 5:08 pm

I have been using Joomla for a while and created some CustomHTML. In the articles , I have links to these HTML files and clicking on the links will bring the user to that HTML page. I don't know what happened as now clicking on the links just trigger a download of the HTML instead of opening it. When I tried to re-establish the link in Joomla backend, the pop-up for link edit still shows the link but when I tried to search for the link, I cannot see any HTML files to link to.

All the HTML files are there but it appears that Joomla does not see HTML files but just the jpeg and png files. Any help would be appreciated.

User avatar
posurreal
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Fri May 22, 2009 5:58 pm

Re: link to local HTML files triggered download instead of opening the page

Post by posurreal » Thu Aug 15, 2019 5:59 pm

I just asked for your website address and realized that it gets blocked by spam. Wish I could see your problem in action to help you. You may want to try using the Forum Post Assistant https://forumpostassistant.github.io/docs/ so that we have more information to go by.

ossoftix
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 15, 2019 12:13 pm

Re: link to local HTML files triggered download instead of opening the page

Post by ossoftix » Fri Aug 16, 2019 2:43 am

Forum Post Assistant (v1.4.9 (lambrusco)) : 16th August 2019 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.11-Stable (Amani) 13-August-2019
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) | Owner: --protected-- . (uid: 1/gid: 1) | Group: --protected-- (gid: 1) | Valid For: 3.9
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: 15 | 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.11: Yes | Database Supports J! 3.9.11: Yes | Database Credentials Present: Password missing |

Host Configuration :: OS: Linux | OS Version: 4.2.8 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 471.24 GiB |

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

Database Configuration :: Version: 5.5.57-MariaDB (Client:mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $) | Host: --protected-- (--protected--) | default Collation: utf8_general_ci (default Character Set: utf8) | Database Size: 6.30 MiB | #of Tables:  93
Detailed Environment :: wrote:PHP Extensions :: Core (5.6.36) | date (5.6.36) | ereg () | libxml () | pcre () | ctype () | dom (20031129) | fileinfo (1.0.5) | filter (0.11.0) | hash (1.0) | json (1.2.1) | SPL (0.2) | openssl () | posix () | Reflection ($Id: 5f15287237d5f78d75b19c26915aa7bd83dee8b8 $) | SimpleXML (0.1) | session () | tokenizer (0.1) | xml () | xmlreader (0.1) | xmlwriter (0.1) | cgi-fcgi () | imagick (3.2.0RC1) | zlib (2.0) | curl () | calendar () | iconv () | gd () | standard (5.6.36) | PDO (1.0.4dev) | sqlite3 (0.7-dev) | mysqlnd (mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | mysql (1.0) | mysqli (0.1) | Phar (2.0.2) | zip (1.12.5) | bcmath () | dba () | mbstring () | ftp () | gettext () | imap () | ldap () | exif (1.4 $Id: e535278fc9664f5b7e5ddcdb6baec07426b8efd6 $) | mcrypt () | pcntl () | shmop () | soap () | sockets () | wddx () | xmlrpc (0.51) | xsl (0.1) | Zend OPcache (7.0.6-devFE) | Zend Engine (2.6.0) |
Potential Missing Extensions ::

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): No
Potential Ownership Issues: Maybe
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) :: libraries/ (777) | libraries/joomla/ (777) | libraries/joomla/base/ (777) | libraries/joomla/facebook/ (777) | libraries/joomla/oauth1/ (777) | libraries/phpass/ (777) | libraries/phputf8/ (777) | libraries/phputf8/mbstring/ (777) | libraries/phputf8/native/ (777) | libraries/phputf8/utils/ (777) |
Database Information :: wrote:Database statistics :: Uptime: 1180096 | Threads: 1 | Questions: 37054 | Slow queries: 0 | Opens: 631 | Flush tables: 5 | Open tables: 64 | Queries per second avg: 0.031 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_wrapper (3.0.0) 1 | com_mailto (3.0.0) 1 |
3rd Party:: WF_VISUALBLOCKS_TITLE (2.5.18) ? | WF_FONTSELECT_TITLE (2.5.18) ? | WF_MEDIA_TITLE (2.5.18) ? | WF_CONTEXTMENU_TITLE (2.5.18) ? | WF_LINK_TITLE (2.5.18) ? | WF_PREVIEW_TITLE (2.5.18) ? | WF_IMGMANAGER_TITLE (2.5.18) ? | WF_PRINT_TITLE (2.5.18) ? | WF_FONTCOLOR_TITLE (2.5.18) ? | WF_ANCHOR_TITLE (2.5.18) ? | WF_KITCHENSINK_TITLE (2.5.18) ? | WF_ARTICLE_TITLE (2.5.18) ? | WF_LAYER_TITLE (2.5.18) ? | WF_SOURCE_TITLE (2.5.18) ? | WF_CLIPBOARD_TITLE (2.5.18) ? | WF_NONBREAKING_TITLE (2.5.18) ? | WF_XHTMLXTRAS_TITLE (2.5.18) ? | WF_DIRECTIONALITY_TITLE (2.5.18) ? | WF_TABLE_TITLE (2.5.18) ? | WF_CHARMAP_TITLE (2.5.18) ? | WF_STYLESELECT_TITLE (2.5.18) ? | WF_SEARCHREPLACE_TITLE (2.5.18) ? | WF_FONTSIZESELECT_TITLE (2.5.18) ? | WF_FULLSCREEN_TITLE (2.5.18) ? | WF_VISUALCHARS_TITLE (2.5.18) ? | WF_TEXTCASE_TITLE (2.5.18) ? | WF_CLEANUP_TITLE (2.5.18) ? | WF_STYLE_TITLE (2.5.18) ? | WF_AUTOSAVE_TITLE (2.5.18) ? | WF_SPELLCHECKER_TITLE (2.5.18) ? | WF_LISTS_TITLE (2.5.18) ? | WF_FORMATSELECT_TITLE (2.5.18) ? | WF_INLINEPOPUPS_TITLE (2.5.18) ? | WF_BROWSER_TITLE (2.5.18) ? | WF_HR_TITLE (2.5.18) ? | WF_MEDIAPLAYER_JCEPLAYER_TITLE (2.5.18) ? | WF_LINKS_JOOMLALINKS_TITLE (2.5.18) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.5.18) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.5.18) ? | WF_AGGREGATOR_[youtube]_TITLE (2.5.18) ? | WF_AGGREGATOR_VINE_TITLE (2.5.18) ? | WF_AGGREGATOR_VIMEO_TITLE (2.5.18) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.5.18) ? | WF_POPUPS_WINDOW_TITLE (2.5.18) ? | WF_LINK_SEARCH_TITLE (2.5.18) ? |

Components :: ADMIN ::
Core :: com_config (3.0.0) 1 | com_content (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_ajax (3.2.0) 1 | com_messages (3.0.0) 1 | com_admin (3.0.0) 1 | com_banners (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_categories (3.0.0) 1 | com_login (3.0.0) 1 | com_modules (3.0.0) 1 | com_users (3.0.0) 1 | com_tags (3.1.0) 1 | com_installer (3.0.0) 1 | com_finder (3.0.0) 1 | com_languages (3.0.0) 1 | com_search (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_cache (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_menus (3.0.0) 1 | com_media (3.0.0) 1 | com_plugins (3.0.0) 1 | com_checkin (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_templates (3.0.0) 1 | com_redirect (3.0.0) 1 | com_associations (3.7.0) 1 | com_fields (3.7.0) 1 | com_privacy (3.9.0) 1 | com_actionlogs (3.9.0) 1 |
3rd Party:: com_djimageslider (3.1.1) 1 | Gantry (4.1.29) 1 | JCE (2.5.18) 1 | COM_ALLVIDEOSHARE (3.0) 1 | COM_COALAWEBTRAFFIC (1.1.0) 1 | com_gantry5 (5.4.17) 1 |

Modules :: SITE ::
Core :: mod_random_image (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_login (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_search (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_tags_similar (3.1.0) 1 |
3rd Party:: Tabs GK5 (1.7.4) 1 | DJ-ImageSlider (3.1.1) 1 | RokNavMenu (2.0.8) 1 | mod_customparallaxck (1.1.0) 1 | LoginPlus (1.0.12) 1 | Simple File Upload (v1.4-J!3) (1.4) 1 | MOD_EASYFILEUPLOADER (2.7.8) 1 | All Video Share - Gallery (3.0) 1 | All Video Share - Player (3.0) 1 | All Video Share - Search (3.0) 1 | MOD_COALAWEBTRAFFIC (1.1.0) 1 | mod_gantry5_particle (5.4.17) 1 |

Modules :: ADMIN ::
Core :: mod_submenu (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_title (3.0.0) 1 | mod_login (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_version (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_status (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_latestactions (3.9.0) 1 | mod_privacy_dashboard (3.9.0) 1 |
3rd Party::

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

Plugins ::
Core :: plg_captcha_recaptcha (3.4.0) 0 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_search_categories (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_tags (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_fields (3.7.0) 1 | plg_content_confirmconsent (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_user_terms (3.9.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_redirect (3.0.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_logout (3.0.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_p3p (3.0.0) 0 | plg_system_sef (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_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_logrotation (3.9.0) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 0 | plg_system_sessiongc (3.8.6) 1 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_twofactorauth_totp (3.2.0) 0 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_finder_categories (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_finder_newsfeeds (3.0.0) 1 | plg_editors-xtd_readmore (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_module (3.5.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_installer_webinstaller (1.1.0) 1 | 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_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 |
3rd Party:: All Video Share - Player (3.0) 1 | plg_editors_tinymce (4.5.11) 1 | plg_editors_codemirror (5.40.0) 1 | plg_editors_jce (2.5.18) 1 | plg_system_jsntplframework (3.1.2) 1 | System - Gantry (4.1.29) 1 | System - RokExtender (2.0.0) 1 | plg_system_jce (2.5.18) 1 | PLG_CWTRAFFICCOUNT (1.1.0) 1 | plg_system_regularlabs (16.6.13289) 1 | plg_system_sourcerer (6.0.3) 1 | PLG_CWTRAFFICCLEAN (1.1.0) 1 | PLG_CWTRAFFICONLINE (1.1.0) 1 | PLG_CWGEARS (0.3.1) 1 | plg_system_gantry5 (5.4.17) 1 | plg_quickicon_jcefilebrowser (2.5.18) 1 | plg_quickicon_gantry5 (5.4.17) 1 | plg_editors-xtd_sourcerer (6.0.3) 1 | plg_gantry5_preset (5.4.17) 0 |
Templates Discovered :: wrote:Templates :: SITE :: protostar (1.0) 1 | beez3 (3.1.0) 1 | AS 002046 Free (2.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | jd_miami (1.0) 1 | jsn_yoyo_free (1.1.0) 1 | wt_blank_free (1.0.4) 1 | FxClean (1.0) 1 | AS 002057 Free (1.5.0) 1 |
Templates :: ADMIN :: isis (1.0) 1 | hathor (3.0.0) 1 |
Last edited by toivo on Fri Aug 16, 2019 6:15 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

ossoftix
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 15, 2019 12:13 pm

Re: link to local HTML files triggered download instead of opening the page

Post by ossoftix » Fri Aug 16, 2019 2:57 am

apologies for the late response as I am located in Asia time zone.

Thanks

ossoftix
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 15, 2019 12:13 pm

Re: link to local HTML files triggered download instead of opening the page

Post by ossoftix » Fri Aug 16, 2019 11:41 am

Just add the below to the htaccess file and it works.

AddType text/html .html

Thanks for your help

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11358
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: link to local HTML files triggered download instead of opening the page

Post by toivo » Fri Aug 16, 2019 12:49 pm

A couple of observations about the configuration:

You are using an old version of PHP. When you switch to PHP 7, test a copy of your website on localhost to make sure that all third party extensions still work, because older third party extensions may not support PHP 7.

Fix the folder permissions, 755 for folders and 644 for files, to stay safe. The following tutorial explains folder and file permissions: https://docs.joomla.org/Verifying_permissions.
Toivo Talikka, Global Moderator

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

Re: link to local HTML files triggered download instead of opening the page

Post by Per Yngve Berg » Fri Aug 16, 2019 4:59 pm

A data base password should be present.


Post Reply

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