Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8307163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:28:22+00:00 2026-06-08T18:28:22+00:00

i Upgrade my old xampp (1.7.3) localhost server to 1.8.0 . now, not work

  • 0

i Upgrade my old xampp (1.7.3) localhost server to 1.8.0 . now, not work smarty template engine (2.6.6) in my all page and i see Strict Standards error. what’s problem? how to fix this ?

NOTE : This Wroked Fine In Old Xampp(1.7.3).

Section of Error :

Strict Standards: Non-static method STemplate::assign() should not be called statically in C:\xampp\htdocs\tube\include\config.php on line 88

Strict Standards: Non-static method STemplate::create() should not be called statically in C:\xampp\htdocs\tube\libraries\mysmarty.class.php on line 42

Strict Standards: Non-static method STemplate::setCompileDir() should not be called statically in C:\xampp\htdocs\tube\include\config.php on line 181

Strict Standards: Non-static method STemplate::setTplDir() should not be called statically in C:\xampp\htdocs\tube\include\config.php on line 182

My Config Line Error :

STemplate::assign($field, $config[$field]); // line 88
STemplate::setCompileDir($config['basedir']."/temporary"); // line 181
STemplate::setTplDir($config['basedir']."/themes"); // line 182

my.Smarty.class.php (error line 2)

function assign($var, $value) {
        global $Smarty;
        if (!isset($Smarty)) {
            STemplate::create(); // <---- line 42
        }
        $Smarty->assign($var, $value);
    }

Thanks For Any Help 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:28:23+00:00Added an answer on June 8, 2026 at 6:28 pm

    It’s because you’re using a modern version of PHP with strict standards. You may be able to make the code work by making the declaration:

    public static function assign($var, $value)
    

    However judging by the other errors you’ll run into many problems. You can try disabling strict standards but it’d be best to upgrade to a modern version of Smarty.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are currently setting up a new server to upgrade from our old Windows
I am trying to upgrade an old-school PHP site ( http://cordair.com/ ) to work
So I'm running jQuery 1.3.2 (yep it's old and right now I can't upgrade).
Im trying to upgrade an old project made using django 1.2 / django-page-cms 1.2
What is the best option if I want to upgrade old C-code to newer
I need to upgrade an old system based on Zope, I need to be
I've just received an assignment to upgrade an old Delphi 3 project that I
I just upgrade to Xcode 4.3.1 For the old version of Xcode, it is
I recently upgrade Django from v1.3.1 to v1.4. In my old settings.py I have
I'm trying to upgrade my Node application from 0.4 to 0.6 along with all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.