Recent Topics

Members
Stats
  • Total Posts: 10649
  • Total Topics: 1376
  • Online Today: 26
  • Online Ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 18
Total: 18

CZ Themes





thumbnail

News

We have *Free SMF 2.0 & 2.1 RC2 Themes* for Download and Support!

Supported and Hosted By Buildz Hosting

Like us on Facebook! - Follow us on Twitter! - Follow us on Instagram!

Author Topic: Ambassador 2.1 For RC2 Is Here!!!  (Read 6198 times)

0 Members and 2 Guests are viewing this topic.

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 424
  • Gender: Male
    • Crip Zone Themes
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #20 on: Mar 02, 20, 03:19:12 AM »
You're  very  welcome!

Offline shambles

  • Newbie
  • *
  • Posts: 10
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #21 on: Mar 02, 20, 10:51:55 AM »
Hi

Just saying that I tried the amabassador2_1 theme today and had to edit index.template.php to include missing function "template_quickbuttons", which I copied over from the standard SMF2.1 default version of index.template.php.  Got "server 500" errors without this function in place.

Good looking theme I have to say  :)

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 424
  • Gender: Male
    • Crip Zone Themes
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #22 on: Mar 02, 20, 11:04:15 AM »
What mods do you have installed? I haven't got those errors.

Offline shambles

  • Newbie
  • *
  • Posts: 10
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #23 on: Mar 02, 20, 11:10:37 AM »
This was an upgrade from 2.0.17 with virtually all files overwritten.

It's on one of my home servers so still under test.

When browsing topics I noticed I could only ever see the first post. Checking the PHP (7.3.13) log I noticed a lot of these...

Quote
[02-Mar-2020 13:44:00 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function template_quickbuttons() in C:\inetpub\wwwroot\Forum2.1\Themes\default\Display.template.php:865
Stack trace:
#0 C:\inetpub\wwwroot\Forum2.1\Themes\default\Display.template.php(255): template_single_post(Array)
#1 C:\inetpub\wwwroot\Forum2.1\Sources\Load.php(2539): template_main()
#2 C:\inetpub\wwwroot\Forum2.1\Sources\Subs.php(3476): loadSubTemplate('main')
#3 C:\inetpub\wwwroot\Forum2.1\index.php(176): obExit(NULL, true, true)
#4 {main}

I picked up the 2.1 repo from Github 7 days ago.

As I said, as this theme provides its own index.template.php file the default one isnt being loaded, meaning that button function was missing.  Copying the function over fixes the issue.

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 424
  • Gender: Male
    • Crip Zone Themes
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #24 on: Mar 02, 20, 11:16:03 AM »
I do know that SMF 2.0.17 is not actually ready for PHP 7.3. So, you may get other errors or problems. AFAIK, it only works properly up to 7.2. There should be an update coming sooner or later...

Thanks for the tip about that function. :)

Offline shambles

  • Newbie
  • *
  • Posts: 10
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #25 on: Mar 02, 20, 11:18:56 AM »
Yeah I'm on 2.0.17 (7.3.13) on all my production and test sites, apart from this one which is on 2.1 RC2

7.3 is fine for 2.0.17 though there are still a few deprecated function still within the source files (though the errors are masked out)

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 424
  • Gender: Male
    • Crip Zone Themes
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #26 on: Mar 02, 20, 11:26:28 AM »
Sorry! Busy doing too many things at one time. LOL Just realized you did say it was 2.1 RC2. LMAO

Yes, the deprecated functions are a problem with 2.0.17. On some sites they give a ton of errors. :P

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 424
  • Gender: Male
    • Crip Zone Themes
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #27 on: Mar 03, 20, 09:37:43 AM »
One question... Did you just add that function at the end of the file or replace the "function template_button_strip" with the "template_quickbuttons"?

Offline shambles

  • Newbie
  • *
  • Posts: 10
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #28 on: Mar 03, 20, 10:23:00 AM »
Just added it to the end of the file :)

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 424
  • Gender: Male
    • Crip Zone Themes
Re: Ambassador 2.1 For RC2 Is Here!!!
« Reply #29 on: Mar 03, 20, 10:24:06 AM »
OK, thank you very much, just making sure first. :)