Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-01-25 08:00:46

DanO
New Member
Registered: 2023-01-25
Posts: 2

Provlem access an article after update

Hi,
Our webhosting company (One.com) has automatically updated our Testpattern to version 4.8 and now I get the error message below when I try to access an article or write a new.

The update also seems to have damage the website layout, but I think that is another problem

I have been searching around and can see there is different solutions, but none of them have solved the problem, so I hope for new input 

Error message
Fatal error: Uncaught Error: Call to undefined function is_windows() in /customers/4/6/c/abviktoria28-30.dk/httpd.www/textpattern/plugins/Postmaster/Postmaster.php:456 Stack trace: #0 /customers/4/6/c/abviktoria28-30.dk/httpd.www/textpattern/plugins/Postmaster/Postmaster.php(163): bab_pm_initialize_mail() #1 /customers/4/6/c/abviktoria28-30.dk/httpd.www/textpattern/lib/txplib_misc.php(1589): bab_postmaster(‘postmaster’, ‘initialize_mail’) #2 /customers/4/6/c/abviktoria28-30.dk/httpd.www/textpattern/index.php(233): callback_event(‘postmaster’, ‘initialize_mail’, 0) #3 {main} thrown in /customers/4/6/c/abviktoria28-30.dk/httpd.www/textpattern/plugins/Postmaster/Postmaster.php on line 456

Config.php
<?php
$txpcfg[‘db’] = ‘Corrected value’;
$txpcfg[‘user’] = ‘Corrected value ‘;
$txpcfg[‘pass’] = ‘‘Corrected value ‘;
$txpcfg[‘host’] = ‘Corrected value l’;
$txpcfg[‘table_prefix’] = ‘txp_’;
$txpcfg[‘txpath’] = ‘/customers/4/6/c/abviktoria28-30.dk/httpd.www/’;
$txpcfg[‘dbcharset’] = ‘utf8’;

Offline

#2 2023-01-25 08:29:51

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

Re: Provlem access an article after update

Hello, welcome to the forum.

You seem to be using a plugin (bab_postmaster?) that has not been updated since ages. The function is_windows() has been deprecated and removed” in 2016. You can either

  • replace its occurrences with IS_WIN constant
  • or define it (in plugins code) to return IS_WIN:
function is_windows() {
    return IS_WIN;
}

You can temporarily disable this plugin to make things easier. Hope that helps.

Offline

#3 2023-01-25 09:53:46

DanO
New Member
Registered: 2023-01-25
Posts: 2

Re: Provlem access an article after update

My last question is related to the web layout. After the update the layout has changed and look like it’s not using the team correctly (See https://www.abviktoria28-30.dk)

Normally the page has a Menu in the top and the mail page divided into sections

Any good ides to what has happened ?

Offline

#4 2023-01-25 11:01:16

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

Re: Provlem access an article after update

It looks like www.abviktoria28-30.dk/css/styles.css file is not accessible, please check. Same for www.abviktoria28-30.dk/css/print.css.

Offline

Board footer

Powered by FluxBB