Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-05-31 16:34:10

keirthomas
New Member
Registered: 2016-03-26
Posts: 7

Single file downloaded each time root is accessed

I upgraded to 4.7.0 following the instructions, being careful not to overwrite config.php. I was on the previous release.

Now when I access the site, a single file called “download” is downloaded. No site!

I CAN login to the admin panel, and Textpattern’s own diagnostics say everything is fine.

I’ve chmod’ed 755 files and folders, including .htaccess. I use a modified .htaccess but even if I replace with the Textpattern default from the install tar/zip, it still doesn’t work. And again Textpattern’s diagnostics say it’s fine anyway.

I can also view pages that are NOT the root, e.g. example.com/articlename. All these appear fine. Theme appears fine. Content’s fine so SQL connection appears to be working fine.

I’m on Dreamhost.

$ php -v
PHP 5.6.36 (cli) (built: Apr 30 2018 20:24:54) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Last edited by keirthomas (2018-05-31 17:04:57)

Offline

#2 2018-05-31 17:10:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,193
Website GitHub Mastodon Twitter

Re: Single file downloaded each time root is accessed

keirthomas wrote #312225:

I upgraded to 4.7.0 following the instructions, being careful not to overwrite config.php. I was on the previous release.

Hi keirthomas,

Could you post your diagnostics?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#3 2018-05-31 17:16:34

keirthomas
New Member
Registered: 2016-03-26
Posts: 7

Re: Single file downloaded each time root is accessed

Here it is:

Textpattern version: 4.7.0 (53fc1f9d4acb1026986bf89845c7a95d)
Last update: 2018-05-31 15:24:08/2018-05-31 16:58:35
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: title_only
Production status: live
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 5.6.36
GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG.
Server timezone: America/Los_Angeles
Server local time: 2018-05-31 10:15:50
Daylight Saving Time enabled?: 1
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): America/Los_Angeles (-28800)
MySQL: 5.6.34-log (Source distribution) 
Database server time: 2018-05-31 10:16:02
Database server time offset: 12 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: en_US.UTF-8
Web server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 4.4.126-0.ksplice-lts-generic
Admin-side theme: classic 4.7.0

 .htaccess file contents: 
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /relative/web/path/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]

    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*) index.php

    RewriteCond %{HTTP:Authorization}  !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>
# END Textpattern

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xmlAddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
</IfModule>

<IfModule mod_headers.c>
# Set XSS Protection header
Header set X-XSS-Protection "1; mode=block"
</IfModule>

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# CSS
ExpiresByType text/css "access plus 1 month"
</IfModule>

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# HTML
ExpiresByType text/html "access plus 2 days"
</IfModule>

# Turn off the ETags
Header unset ETag
FileETag None

# Turn off the Last Modified header except for html docs
<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css)$">
Header unset Last-Modified
</FilesMatch>
------------------------

Charset (default/config): latin1/latin1
character_set_client: latin1
character_set_connection: latin1
character_set_database: utf8
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /data/mysql/debardelaben/share/charsets/
35 database tables: textpattern is utf8, txp_category is utf8, txp_category__20151109_152120 is utf8, txp_css is utf8, txp_css__20151109_152120 is utf8, txp_discuss is utf8, txp_discuss__20151109_152120 is utf8, txp_discuss_ipban is utf8, txp_discuss_ipban__20151109_152120 is utf8, txp_discuss_nonce is utf8, txp_discuss_nonce__20151109_152120 is utf8, txp_file is utf8, txp_file__20151109_152120 is utf8, txp_form is utf8, txp_form__20151109_152120 is utf8, txp_image is utf8, txp_image__20151109_152120 is utf8, txp_lang is utf8, txp_lang__20151109_152120 is utf8, txp_link is utf8, txp_link__20151109_152120 is utf8, txp_log is utf8, txp_log__20151109_152120 is utf8, txp_page is utf8, txp_page__20151109_152120 is utf8, txp_plugin is utf8, txp_plugin__20151109_152120 is utf8, txp_prefs is utf8, txp_prefs__20151109_152120 is utf8, txp_section is utf8, txp_section__20151109_152120 is utf8, txp_users is utf8, txp_users__20151109_152120 is utf8

10 custom fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

/admin-themes/classic/classic.php: 
	61532c16e97ac04f6a77c40092320d06
/admin-themes/hive/assets/js/main.js: 
	5fb2157b7be591b0f1a64a81c0e07307
/admin-themes/hive/hive.php: 
	fde208a1e25dfb21a1d1ee77c519425b
/admin-themes/hiveneutral/assets/js/main.js: 
	5fb2157b7be591b0f1a64a81c0e07307
/admin-themes/hiveneutral/hiveneutral.php: 
	e64d0330d00d23537b4a88b8b9fbcbc7
/include/txp_admin.php: 
	7519b76848be7755f86597d129155956
/include/txp_article.php: 
	9c66b94aebc82cc904474cabda1e9fd1
/include/txp_auth.php: 
	72d54d6c6054c00bc86783f8e8932615
/include/txp_category.php: 
	12f668975bf70313ad35386bd827752b
/include/txp_css.php: 
	8015b08c023a3f417dae965aedb528db
/include/txp_diag.php: 
	8f27a0275d3019464fcf96e9dafe32f5
/include/txp_discuss.php: 
	b0996486020d9cbab51cd20914296cd5
/include/txp_file.php: 
	7f33658528146b1ffd0df5ffb2d126b0
/include/txp_form.php: 
	0efc3a4e844bf8718568dea69732c97c
/include/txp_image.php: 
	7228e07fc0e2087e67c73d197fbc001e
/include/txp_lang.php: 
	1d7fa0b9769fa392e828a00cc25e119b
/include/txp_link.php: 
	ee6af7cbb957441252ab7fa0c123812e
/include/txp_list.php: 
	081f5f993f883fbec744fe35dbcb6186
/include/txp_log.php: 
	2b15c0f98935bfc039e14f25663b34e4
/include/txp_page.php: 
	bd08cefe5cd6ca981369b5f6542ec22d
/include/txp_pane.php: 
	ec55f252887a68f3e3dc6510dd1385a0
/include/txp_plugin.php: 
	d3b7bff80b7ab92009dd90953c10c149
/include/txp_prefs.php: 
	f8ce3cb291904b544fb2a5edadf9a408
/include/txp_section.php: 
	d1b68fe799d91073ae5d38e97f6f3dbd
/include/txp_skin.php: 
	242bc7272a7260d8f868baca8ac40f34
/include/txp_tag.php: 
	4a939325b676d76a439f2843ea64e36d
/index.php: 
	f4bd451da931a8c63f14a4b4fb07952d
/lib/admin_config.php: 
	73adea849578cfc3e1473c2973f75b8f
/lib/class.thumb.php: 
	de16440b4815129444a93683735d8ed0
/lib/class.trace.php: 
	055e3bc1f8d3217aec152fa7e6216b1d
/lib/classTextile.php: 
	f970ce6ae622ffc333dc5190d2a17132
/lib/constants.php: 
	6b1cc698a4688276a88be8b945eda8bb
/lib/IXRClass.php: 
	a1b525b4a9ed12dcb5677d5232a3d92e
/lib/PasswordHash.php: 
	66a8aa4b2d6e0527877a797907efc035
/lib/taglib.php: 
	0cafc9b259d5a45475eb47d36a0d6567
/lib/txplib_admin.php: 
	af75aee8d639a179bb5d81cedb78a54e
/lib/txplib_db.php: 
	076e203592ff394e894df1a39691d577
/lib/txplib_forms.php: 
	debea9cd565421f98994b95356ccc735
/lib/txplib_head.php: 
	9824fa30efa00d17fcd1d9c577c3708a
/lib/txplib_html.php: 
	f06c2aba7abab5a73fa7b943575525f2
/lib/txplib_misc.php: 
	c6d23970ca3602f0f5736331f24ef8e5
/lib/txplib_publish.php: 
	cbb1f3a43db8c239f448370e42718cce
/lib/txplib_theme.php: 
	f9806970169bed7a6ac34248322eccce
/lib/txplib_update.php: 
	ddef7c647997652b6b56b04c64d9e203
/lib/txplib_validator.php: 
	d5e11546c01a75753e96589d9e16045a
/lib/txplib_wrapper.php: 
	8778abc96eff3ccb07f3bccca5304896
/publish/atom.php: 
	e932843e6ddf39b6c6d3b7054cac6e01
/publish/comment.php: 
	a8220d9baf3880f589efdcbc752c2a41
/publish/log.php: 
	e3a4b1a93c3baf9ac768ad77159e076b
/publish/rss.php: 
	e623973ce45c62d16ede7645e66d225a
/publish/search.php: 
	93270cd66dff1aad9b489c206a6f1896
/publish/taghandlers.php: 
	7fc369210429643a397de6bb48758e3e
/publish.php: 
	a7881f80c3d7e67a7e6b845f60869ae4
/textpattern.js: 
	d47d3d83c603903b414873382b66d6b6
/update/_to_4.0.3.php: 
	fb35e8e3dce16aad32b3d3af1a2b60c7
/update/_to_4.0.4.php: 
	7982d5063df84b7a2b1bb07660b8886b
/update/_to_4.0.5.php: 
	376bafd8685724e7c9e91b1a3ffe172f
/update/_to_4.0.6.php: 
	99493842f5994cc7f6eb88abde8433fe
/update/_to_4.0.7.php: 
	61a7ffaf8635067565fc2e8c22492e9e
/update/_to_4.0.8.php: 
	d70f2023c97b7e34ed03f953eb2ea434
/update/_to_4.2.0.php: 
	19629cf52c940b7a4a62a9c1cad9b303
/update/_to_4.3.0.php: 
	f39bccf59a1d1dd42fb5a2a351e583ac
/update/_to_4.5.0.php: 
	d5fe48683eb7ce2244829cb6cf3a36b2
/update/_to_4.5.7.php: 
	d2a0a8eaf49fb8b21292938d6bc81238
/update/_to_4.6.0.php: 
	f410119d42530763f483f4ac593192d6
/update/_to_4.7.0.php: 
	2c05d4f7054a53fb2acd1c868a9978a3
/update/_update.php: 
	5b0cf6653c06307f625de74c83c705d8
/vendors/blueimp/fileupload/jquery.fileupload.js: 
	cbf3e62ed9e9051e13cc708ee056c0bc
/vendors/jquery/jquery/jquery.js: 
	a09e13ee94d51c524b7e2a728c7d4039
/vendors/jquery/jquery-ui/jquery-ui.js: 
	0a497d4661df7b82feee14332ce0bdaf
/vendors/Netcarver/Textile/DataBag.php: 
	6564919a34daee6623cbc353dac4087e
/vendors/Netcarver/Textile/Parser.php: 
	18019ac0b4a64b4762d01c7a2795c756
/vendors/Netcarver/Textile/Tag.php: 
	b8d2d5ac8ddd65c82c220d5ab2fad15f
/vendors/PrismJS/prism/prism.js: 
	70dc7887a49b77ab27fac313dbe8409b
/vendors/Textpattern/Adaptable/AdapterInterface.php: 
	2ca155f9022bee03d9883c92f5e7d0c8
/vendors/Textpattern/Adaptable/Providable.php: 
	5e4dafa7ef6ce91d1413f5d035cc32ff
/vendors/Textpattern/Adaptable/ProvidableInterface.php: 
	4fad6fb0ae3b9943659b6a75f506b836
/vendors/Textpattern/Admin/Paginator.php: 
	4b55b5293578dc6eab040b09f75121bf
/vendors/Textpattern/Admin/Table.php: 
	d35a33cd48b5239eb8b05fbf71f96eff
/vendors/Textpattern/Admin/Theme.php: 
	a78a1d2c5955c67d8b65caf612e5ef2c
/vendors/Textpattern/Admin/Tools.php: 
	670f0eb7288145e1db50565a82aa8218
/vendors/Textpattern/Container/Container.php: 
	c6d55480dbc432b804735cc0aa49991c
/vendors/Textpattern/Container/ContainerInterface.php: 
	eb0dd1cbd9cde8f1ca76f17ef3eab76b
/vendors/Textpattern/Container/FactorableInterface.php: 
	7a98d544cc82356752421cb4924e14d0
/vendors/Textpattern/Container/FactoryInterface.php: 
	eee6a60f5d451535194c3b5c0583e64a
/vendors/Textpattern/Container/ReusableInterface.php: 
	bd8353eee806eec630307fe66fb54d84
/vendors/Textpattern/Date/Timezone.php: 
	e6cb18891da6b037bc84e96dba68e105
/vendors/Textpattern/DB/Core.php: 
	ec78eb77f7275df574c202db3f3a06ea
/vendors/Textpattern/Filter/Exception.php: 
	20fbdefe757e2ffa10510ba79be15189
/vendors/Textpattern/Filter/FilterCallable.php: 
	acb6078b24a05165c39382952730854b
/vendors/Textpattern/Filter/StringFilter.php: 
	3da0ebbec1107a1b02284eb5ac61f579
/vendors/Textpattern/Http/Request.php: 
	b9b97359cccd2781cc2ee0879817fe75
/vendors/Textpattern/Import/TxpXML.php: 
	4f0ba2e86d1f4fc0d51df804fed2557d
/vendors/Textpattern/Iterator/FileIterator.php: 
	b2895983f4b522ba8fb43ec3e500233d
/vendors/Textpattern/Iterator/RecDirIterator.php: 
	c3cf59afe374c285fc6a64ca7bf6770f
/vendors/Textpattern/Iterator/RecFilterIterator.php: 
	5cb9d60bbfac498254e926fb64b03d58
/vendors/Textpattern/Iterator/RecIteratorIterator.php: 
	340ae698929f267f057570a34df42c8f
/vendors/Textpattern/L10n/Lang.php: 
	bed70731075b16b050c19ced3a70fcf0
/vendors/Textpattern/L10n/Locale.php: 
	d2b933aff0ee023b5c9d8def3682dd23
/vendors/Textpattern/Loader.php: 
	fe4190fbfea4f13bf6a664d9db6bd551
/vendors/Textpattern/Mail/Adapter/Mail.php: 
	36b0821f9d9888bb37442baa3db91989
/vendors/Textpattern/Mail/AdapterInterface.php: 
	be075beed5cadde10f47440efe0ca03c
/vendors/Textpattern/Mail/Compose.php: 
	5ecf483447802c5a8c0d0494655c2000
/vendors/Textpattern/Mail/Encode.php: 
	1659d9da0e6c537b51c7cbbb2bafd2c3
/vendors/Textpattern/Mail/Exception.php: 
	e9c6f012af13f5bb8a4e0804349aacea
/vendors/Textpattern/Mail/Message.php: 
	be327d690d66a40438ac856911011fdd
/vendors/Textpattern/Module/Help/HelpAdmin.php: 
	4fd0022798e29fbe9523549517661267
/vendors/Textpattern/Password/Adapter/PasswordHash.php: 
	bfb97efec8fae5c351bc51d5341b9824
/vendors/Textpattern/Password/AdapterInterface.php: 
	8597c3f7072fd8b3a206743518e1d8ef
/vendors/Textpattern/Password/Generator.php: 
	20daccd1ad9cee8e00ef4f82142aa6a3
/vendors/Textpattern/Password/Hash.php: 
	128b26b0e60ad004c5daaabf8ff15e7f
/vendors/Textpattern/Password/Random.php: 
	7cbfbdb00fa7ae08f8208b5e9ccf8fb8
/vendors/Textpattern/Plugin/Plugin.php: 
	65ec5f4534ab90aac613b92c95e380c5
/vendors/Textpattern/Search/Filter.php: 
	b253d6fd147f0efa2eb5a3c7b86e8fca
/vendors/Textpattern/Search/Method.php: 
	cbe44bf2aeaf6b7b0a9a871b9deb10c3
/vendors/Textpattern/Security/Exception.php: 
	af306a7a85a6be2670129ffe252f691a
/vendors/Textpattern/Security/Filter.php: 
	fbf3003e02a71583fc5559426afe45da
/vendors/Textpattern/Server/Config.php: 
	e463474cd15b931918cc3c1d353948ea
/vendors/Textpattern/Server/Files.php: 
	b31726c28b4b3c8f634b292f414d167b
/vendors/Textpattern/Skin/AssetBase.php: 
	0941c1da7ec0844f8bbd509b3b0b5f37
/vendors/Textpattern/Skin/AssetInterface.php: 
	95e540133825dd2acf73abed73a88c4a
/vendors/Textpattern/Skin/CommonBase.php: 
	17e0cba2250301d03f15f3bddc3328d5
/vendors/Textpattern/Skin/CommonInterface.php: 
	1bafe4ac2c65b31e5b17a93cedaf36c6
/vendors/Textpattern/Skin/Css.php: 
	f5e16c5c422bdaba7f65e87216267c67
/vendors/Textpattern/Skin/CssInterface.php: 
	605dc4c98cf6e47e8cd0fae7e27012ea
/vendors/Textpattern/Skin/Form.php: 
	45e47c023fbbaa3947d06d51336c0d72
/vendors/Textpattern/Skin/FormInterface.php: 
	8e5a25e49668d42b29935d42ae720a10
/vendors/Textpattern/Skin/Page.php: 
	935eccac8dc3e9df75b720c1b2f9888e
/vendors/Textpattern/Skin/PageInterface.php: 
	f54a7c0e7beb3343d357a6ce5397f4fa
/vendors/Textpattern/Skin/Skin.php: 
	77bdbd00fe2d0baf8f62f95eb4d37a25
/vendors/Textpattern/Skin/SkinInterface.php: 
	f9c8f4340ab0bdd2658821d983a77ca2
/vendors/Textpattern/Tag/Registry.php: 
	d651ad90f6d87838fdfbf43cd8d457c4
/vendors/Textpattern/Tag/Syntax/Authors.php: 
	86a6154bd08e73319762b3387cdfb92a
/vendors/Textpattern/Tag/Syntax/File.php: 
	3f730fdaa76ca355b27ccb7478396258
/vendors/Textpattern/Tag/Syntax/Image.php: 
	c1319e2289fa56d0ab97cfc84b9f1496
/vendors/Textpattern/Tag/Syntax/Link.php: 
	3f8f78ef3580df9051df295122a6ff83
/vendors/Textpattern/Tag/Syntax/Partial.php: 
	798581ba13a2fa245a9a2a29bd8268a7
/vendors/Textpattern/Textfilter/Base.php: 
	148b6267831d35d6a8db15d1cd2ccdaf
/vendors/Textpattern/Textfilter/Constraint.php: 
	0f991e221704033b340b4627cd3bd8d7
/vendors/Textpattern/Textfilter/Nl2Br.php: 
	120fc5128e0feca793fef7554dc6e3c5
/vendors/Textpattern/Textfilter/Plain.php: 
	3db6d32fc7a0977de52c190fef26e444
/vendors/Textpattern/Textfilter/Registry.php: 
	2e72f55326955288956d3f073d80685b
/vendors/Textpattern/Textfilter/TextfilterInterface.php: 
	c4fed4b35a6192a99f4156096afa66dd
/vendors/Textpattern/Textfilter/Textile.php: 
	7cdebba481fca095d7217ae7d0d594bf
/vendors/Textpattern/Textile/Parser.php: 
	89adf00249564a589da43900def4aeec
/vendors/Textpattern/Textpack/Parser.php: 
	c1c16982cb729bbffacaf95ad962a4c6
/vendors/Textpattern/Textpack/String/Iterator.php: 
	8ec5882fd003c8944dfde641acccc0f7
/vendors/Textpattern/Textpack/StringInterface.php: 
	4b8188cd9e878f46e4f259525ae79d3c
/vendors/Textpattern/Type/StringType.php: 
	ac453a1d358a749aa5191bd68ce19a75
/vendors/Textpattern/Type/TypeCallable.php: 
	c52efaafaa97590c9c9c981d8f3ce998
/vendors/Textpattern/Type/TypeInterface.php: 
	0f44c97964b9c8918eb50df4dc4e8d2e
/vendors/Textpattern/Validator/BlankConstraint.php: 
	1382f7d7ec14085c9a845c05392a83c4
/vendors/Textpattern/Validator/CategoryConstraint.php: 
	1905d8a0caf31c928d278179948c4f2c
/vendors/Textpattern/Validator/ChoiceConstraint.php: 
	bb2acc51b1deffe94c5d35778d4d61fc
/vendors/Textpattern/Validator/Constraint.php: 
	19c8680ea34aab9205edb4953f8c3e48
/vendors/Textpattern/Validator/FalseConstraint.php: 
	bb26fc272d022d75db704425d2daef10
/vendors/Textpattern/Validator/FormConstraint.php: 
	3c102f4fd6901ab16cc168322af37e1d
/vendors/Textpattern/Validator/SectionConstraint.php: 
	d6c469fc4e538dc86a5173687965af93
/vendors/Textpattern/Validator/TrueConstraint.php: 
	b1d6b1cb9aac086af40aed4353762cfd
/vendors/Textpattern/Validator/Validator.php: 
	1c4ce4a0f834099e65cf20a3efc9b744
/vendors/Txp.php: 
	2b5fddedc158ac643a1e1bdab917932f
/../css.php: 
	2277486a44bb8c84a10546439a8d0c18
/../index.php: 
	3c7de42a5a7ab5e8a14348fe03b56c6c

------------------------

Last edited by keirthomas (2018-05-31 17:18:12)

Offline

#4 2018-05-31 20:23:16

keirthomas
New Member
Registered: 2016-03-26
Posts: 7

Re: Single file downloaded each time root is accessed

Well I’ve since spoken to Dreamhost tech support. They’ve checked everything their end and say it’s a problem with the software – which is to say Textpattern.

If I rename index.php then at least I get a 404 error, so the signs are that the updated 4.7.0 index.php is causing the issue. I haven’t edited this.

Dreamhost’s suggestion was to roll back the site to the earlier release. I tried restoring the files from a backup, but have no backup of the SQL database. The site works but the H1 headings are missing, presumably because 4.7.0 changed the SQL somehow.

Offline

#5 2018-05-31 21:26:06

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: Single file downloaded each time root is accessed

A strange thing happens on the second access to some pages of www.mackungfu.org/: they are served with a weird

Content-Type: ntent-type:text/html;

header, which triggers a browser dialog. Please check if asy_jpcache plugin is not corrupted.

Offline

#6 2018-05-31 22:09:59

keirthomas
New Member
Registered: 2016-03-26
Posts: 7

Re: Single file downloaded each time root is accessed

Disabling jpcache fixed the problem (well, removing the jpcache line from config.php did so). Many thanks.

I can turn it on again in future when I’ve more time to investigate the issue.

For anybody else having this issue, remove the following line in config.php within the textpattern directory:

$txpcfg['pre_publish_script'] = './jpcache/jpcache.php';

Offline

#7 2018-06-01 08:36:50

keirthomas
New Member
Registered: 2016-03-26
Posts: 7

Re: Single file downloaded each time root is accessed

Well I did some quick checks with asy_jpcache – removing then reinstalling the admin plugin, and also clearing the cache. None fixed the problem. The only way to fix things was to disable jpcache, as mentioned above.

So could it be that 4.7.0 breaks asy_jpcache? I realise it’s rather old (the newest update appears to be four years ago – https://github.com/netcarver/asy_jpcache). Is there a better caching plugin we should be using?

Offline

#8 2018-06-01 11:34:38

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: Single file downloaded each time root is accessed

Try to replace l.87 of jpcache/file.php with

$cachedata["jpcachedata_type"] = trim(substr($item, strpos($item, ':')+1));

But the plugin still might break somewhere else, e.g. on visitors logging.

Offline

Board footer

Powered by FluxBB