Jump to content

Mod_Fcgid Php Fatal Error Smarty_Function_Implode


f.spatharakis

Recommended Posts

Hi all,

 

It's my first post here and hope that I'm posting to the right topic. Forgive me if not. I had a prestashop installation in my PC which works great. But after some work I've done I moved it to my hosting provider, in order to be an actual production eshop. But I'm facing a problem.

 

While the backoffice works seamlessly, the frontoffice not. The index page is actually shown but other pages that I'm trying to navigate, eg products, categories etc I'm getting a blank screen. I get the following errors in my log:

 

  • "mod_fcgid: stderr: PHP Fatal error: Call to undefined function smarty_function_implode() in tools/smarty/sysplugins/smarty_internal_templatebase.php(157): eval()'d code on line 128."
  • mod_fcgid: stderr: PHP Fatal error: Call to undefined function smarty_function_implode() in cacha/smarty/compile/a2/49/91/a24991cbdd528103632f1bf726da253be43793d0.file.header.tpl.php on line 128

 

I really don't know what is going wrong. Hoped that my hosting provider's support knew something but unfortunately not. The day before yesterday I faced a problem, which was caused by the PHP Version and since they told me to use a newer one worked. I'm currently working on PHP v5.6.18. The next available version is 7.0.3. I hope that some module is missing and nothing more.  :(

 

Any suggestions are welcome. If there is something more you need to know in order to help me, I will respond ASAP. I'm using prestashop 1.6.1.4.

 

Thanks in advance for your time.

Fotis

 

----------------------------------

 

A late night addition. As a result I get a HTTP 500. But the response of the HTML is partial and it's the following one:

 

<!DOCTYPE HTML>
<html lang="el">
<head>
<meta charset="utf-8" />
<title>ΑΛΑΤΙΑ - Terra Delicia</title>
<meta name="generator" content="PrestAddon" />
<meta name="robots" content="index,follow" />
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes" /> 
<link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico?1454179076" />
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico?1454179076" />
        <link href="http://21058289431.thesite.link/themes/vp_spices/css/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
        <link href="http://21058289431.thesite.link/themes/vp_spices/css/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css" />
                                    <link rel="stylesheet" href="http://21058289431.thesite.link/themes/vp_spices/cache/v_26_7bcc0bb6da3f2dad4d2628cecd6e48ad_all.css" type="text/css" media="all" />
                             
<script type="text/javascript">
(window.gaDevIds=window.gaDevIds||[]).push('d6YPbH');
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67820532-1', 'auto');
ga('require', 'ec');</script><link href="http://21058289431.thesite.link/themes/vp_spices/css/styles/style2.css" id="vtheme-style" title="http://21058289431.thesite.link/themes/vp_spices/css/styles/" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/modules/bestwidget/js/hook/styleswitch.js"></script> <style type="text/css">@media (min-width: 1200px){
.container{
width:1170px }
}
body{
font-family:Verdana; font-size:14px;
}</style><script type="text/javascript">/* <![CDATA[ */;var favorite_products_url_add='http://21058289431.thesite.link/el/module/favoriteproducts/actions?process=add';var favorite_products_url_remove='http://21058289431.thesite.link/el/module/favoriteproducts/actions?process=remove';/* ]]> */</script>
<!--[if IE 8]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body id="category" class="category 
Edited by f.spatharakis (see edit history)
Link to comment
Share on other sites

Hi Tuk,

 

Thanks for your answer! I tried all Plesk's available versions (5.5.32, 5.6.12 and 7.0.3) that are available in my hosting provider with no result. In v7.0.3 the error messages changed.

 

Although now I'm back to zero because I uploaded all the files again and I guess some of them where not transfered, so prestashop doesn't works at all. I hope that tonight I'll be able to restore the site to half working state. 

 

Will it be helpful to post php_info page? Please let me know if I can post anything more in order to help you find out what the problem is. 

 

Thanks again!

Link to comment
Share on other sites

Did you enable the error reporting. I had similar issues earlier then when i enabled the error reporting, i figured that it was something to do with an useless installed module. I uninstalled it and everything went well after. Incase if you havent enabled the error reporting, here are the steps!

 

config/defines.inc.php set PS_MODE_DEV to true!

 

Enable the error reporting you wouldnt get the blank page anymore. It would throw you an error message and then probably we can deal from there

Edited by bilusunny (see edit history)
Link to comment
Share on other sites

Did you enable the error reporting. I had similar issues earlier then when i enabled the error reporting, i figured that it was something to do with an useless installed module. I uninstalled it and everything went well after. Incase if you havent enabled the error reporting, here are the steps!

 

config/defines.inc.php set PS_MODE_DEV to true!

 

Enable the error reporting you wouldnt get the blank page anymore. It would throw you an error message and then probably we can deal from there

 

Thanks bilusunny! I'll try it we I go home. First, I must restore prestashop to the previous state, because now nothing is working.

Edited by f.spatharakis (see edit history)
Link to comment
Share on other sites

Guys I'm really thankful for your answers. My problem is solved and I don't believe that has something to do with Prestashop. This is what I did.

 

  1. Instead of moving the files with ftp, I created one zip file and I unzipped it in server using Plesk's file explorer.
  2. I changed permissions for read and write in all files, directories and subdirectories.
  3. I used db console in order to set PS_REWRITING_SETTINGS and PS_ALLOW_ACCENTED_CHARS_URL of PS_CONFIGURATION table to 0, in order to deactivate them
  4. I used the file explorer's editor in order to delete all content from .htaccess file.

After that the site worked properly without Friendly URLs. I reactivated them, and all worked like a dream.

 

Thanks again for all your answers!! 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...