Fatal Error: Undefined Function New_smarty

Discussion in 'Installation' started by Guest_Joshua, Nov 27, 2003.

  1. Guest_Joshua

    Guest_Joshua Guest

    Purchased the pro version of aMember and after installing and attempting to access the admin page to finish configuring, I get the following error:

    Zend
    Fatal error: Call to undefined function: new_smarty() in /home/elders2/public_html/amember/admin/index.php on line 20


    I emailed support, and the response I got was to run setup.php, which makes absolutely no sense because I had already run it in the initial install.

    Anyone have any insight? For my hundred dollar investment I hoped for better support than I have received from amember so far.

    -Joshua
  2. alex-adm

    alex-adm Guest

    Joshua,
    I hope the problem is already resolved?
    You have uploaded files encoded for Zend Optimizer, while your hosting doesn't have Zend Optimizer installed.
  3. TINY

    TINY Guest

    Alex, the question is how do we resolve this problem ? This is a formun and some of your answers could be a little more detailed so that we know how to resolve the problem.
  4. alex-adm

    alex-adm Guest

    there was the reason described in my post:
    you have uploaded files encoded for Zend Optimizer, while your hosting doesn't have Zend Optimizer installed.
  5. yktdan

    yktdan Guest

    I have a similar problem on free amember. I believe it has to do with the path to the smarty directory but mine looks correct in the config file unless full paths don't work.

    Zend is not involved in my case.
  6. alex-adm

    alex-adm Guest

    Yes, on some hostings PHP is not allowed to detemine full path, then you have to set
    $config['root_dir']
    in amember/config.inc.php manually.
  7. yktdan

    yktdan Guest

    Your instructions were a little short on detail. You didn't say what to set it to. However a few tries got the right value which is the full path from root.

    There is another problem. Almost all the .php file begin with <? and not with <?php. I had to modify every one to use <?php.

Share This Page