Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-03-14 17:44:17

superbiate
Member
Registered: 2017-03-14
Posts: 14

[solved] Fatal Error on Upgrade?

Hi everyone, I just upgraded our install to 4.6.2 and am now encountering these errors (with no content visible):

Warning: main(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/superb10/public_html/textpattern/publish.php on line 36

Fatal error: Call to a member function start() on a non-object in /home/superb10/public_html/textpattern/publish.php on line 36

The first error I’d encountered previously, and was the cause of the upgrade. The second one seems to be the reason why I now have a blank site! http://superbiate.com is what we’re looking at – and I’d built it back in 2010 with a tech collaborator who introduced me to Txp, which I quite love with my moderate coding skill.

But I’m definitely not an expert. Especially around the vagaries of how Txp’s CMS pulls all the data together. Any and all help is very greatly appreciated! My kind thanks in advance, G.

Edit: Labeled title as solved.
– Uli –

Last edited by uli (2017-03-15 20:36:33)

Offline

#2 2017-03-14 18:19:48

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

Re: [solved] Fatal Error on Upgrade?

hi and welcome to txp.

Try this thread as it might solve your problem. Otherwise please do post back in this thread and the answer will be found.


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

Offline

#3 2017-03-14 18:48:22

superbiate
Member
Registered: 2017-03-14
Posts: 14

Re: [solved] Fatal Error on Upgrade?

Thanks so much colak, it seems possible that it might be a plugin issue from the thread you shared; only trouble is, I have no idea if any are installed, and if so, where.

Here’s the contents of line 36 in publish.php:

$trace->start(‘[PHP includes, stage 2]’);

My sincere thanks for your time and attention, friend. Cheers!

Offline

#4 2017-03-14 19:21:58

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [solved] Fatal Error on Upgrade?

You see the active plugins by visiting Admin > Plugins.

You can turn single ones on/off by clicking their yes/no link in the Active column, or turn multiple ones on/off by clicking their checkmarks and using the “With selected” > “Change status” menu item bottom left on the page.

In case we can help with information on single plugins, please go to Admin > Diagnostics and post here the contents of the text area. They’re all listed there.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2017-03-14 20:40:46

superbiate
Member
Registered: 2017-03-14
Posts: 14

Re: [solved] Fatal Error on Upgrade?

Copy that uli, thanks so much! As I suspected, there are no plugins installed. Here’s the diagnostic:

Textpattern version: 4.6.2 (7ca98572a7b9fdb0781edd6fc4fd39e4)
Last Update: 2017-03-14 17:24:15/2017-03-14 17:12:14
Document root: /home/superb10/public_html
$path_to_site: /home/superb10/public_html
Textpattern path: /home/superb10/public_html/textpattern
Permanent link mode: year_month_day_title
Temporary directory path: /home/superb10/public_html/textpattern/tmp
Site URL: superbiate.com
PHP version: 5.4.45
GD Image Library: version bundled (2.1.0 compatible), supported formats: GIF, JPG, PNG
Server TZ: UTC
Server Local Time: 2017-03-14 20:39:49
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: America/New_York (-18000)
MySQL: 5.6.33-log
db_server_time: 2017-03-14 16:39:49
db_server_timeoffset: 0 s
db_global_timezone: SYSTEM
db_session_timezone: SYSTEM
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.10.0-427.18.2.lve1.4.38.el7.x86_64
Admin-side theme: classic 4.6.2

Pre-flight check:
————————————
Some Textpattern files have been modified: /home/superb10/public_html/index.php, /home/superb10/public_html/css.php
Clean URL test failed.
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<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>

<Files README.txt> Order allow,deny Deny from all
</Files>

<Files HISTORY.txt> Order allow,deny Deny from all
</Files>

<Files “Textpattern Files and Folders.txt”> Order allow,deny Deny from all
</Files>

#php_value register_globals 0
————————————

HUGE thanks for your time, best regards,

Offline

#6 2017-03-14 20:51:48

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [solved] Fatal Error on Upgrade?

OK, let’s try to get rid of the timezone error with one of these:

In case you’ve access to a php.ini file (Not every webspace has it available.)

In case not there’s always config.php (You’ll find the file here: superbiate.com/textpattern/config.php). Add that code from there to a new line immediately above the closing ?> in config.php.

Last edited by uli (2017-03-14 20:54:53)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2017-03-14 21:46:57

superbiate
Member
Registered: 2017-03-14
Posts: 14

Re: [solved] Fatal Error on Upgrade?

THANKS uli! That killed the timezone warning perfectly. But now we have our lone fatal error preventing anything at all from loading: http://superbiate.com.

Here’s the updated diagnostic, if it helps.

Textpattern version: 4.6.2 (7ca98572a7b9fdb0781edd6fc4fd39e4)
Last Update: 2017-03-14 17:24:15/2017-03-14 17:12:14
Document root: /home/superb10/public_html
$path_to_site: /home/superb10/public_html
Textpattern path: /home/superb10/public_html/textpattern
Permanent link mode: year_month_day_title
Temporary directory path: /home/superb10/public_html/textpattern/tmp
Site URL: superbiate.com
PHP version: 5.4.45
GD Image Library: version bundled (2.1.0 compatible), supported formats: GIF, JPG, PNG
Server TZ: America/New_York
Server Local Time: 2017-03-14 17:44:14
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: America/New_York (-18000)
MySQL: 5.6.33-log
db_server_time: 2017-03-14 17:44:14
db_server_timeoffset: 0 s
db_global_timezone: SYSTEM
db_session_timezone: SYSTEM
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.10.0-427.18.2.lve1.4.38.el7.x86_64
Admin-side theme: classic 4.6.2

Pre-flight check:
————————————
Some Textpattern files have been modified: /home/superb10/public_html/index.php, /home/superb10/public_html/css.php
Clean URL test failed.
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<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>

<Files README.txt> Order allow,deny Deny from all
</Files>

<Files HISTORY.txt> Order allow,deny Deny from all
</Files>

<Files “Textpattern Files and Folders.txt”> Order allow,deny Deny from all
</Files>

#php_value register_globals 0
————————————

Line 36 of publish.php remains $trace->start(‘[PHP includes, stage 2]’);

Offline

#8 2017-03-14 22:54:07

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [solved] Fatal Error on Upgrade?

When you visit superbiate.com/textpattern/include with an FTP app, do you see a folder named import and a file txp_import.php? If so, you can delete both (incl. folder contents), they’re only necessary in previous versions and were causing errors, previously.

In case they were still there: Does your site work again?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#9 2017-03-14 23:49:19

superbiate
Member
Registered: 2017-03-14
Posts: 14

Re: [solved] Fatal Error on Upgrade?

Sorry uli, neither file is present – I’m working with a clean install of the latest CMS. Please advise….

Offline

#10 2017-03-15 06:33:53

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

Re: [solved] Fatal Error on Upgrade?

Could you put your site on debug mode? We might be able to pick the error from the tag trace.


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

Offline

#11 2017-03-15 12:22:16

superbiate
Member
Registered: 2017-03-14
Posts: 14

Re: [solved] Fatal Error on Upgrade?

Gladly, colak — http://superbiate.com.

Sincere thanks in advance, G.

Offline

#12 2017-03-15 12:44:02

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

Re: [solved] Fatal Error on Upgrade?

Some Textpattern files have been modified: /home/superb10/public_html/index.php, /home/superb10/public_html/css.php

That’s suspect.

Offline

Board footer

Powered by FluxBB