Fatal Error Call To Undefined Function _phptemplate_callback
that make connections all over the world. Join today Community Community Home Getting Involved Chat Forum SupportPost installation Theme Fatal error: Call to undefined function _phptemplate_callback() Posted by vincenzi on October 17, 2008 at 4:54am Hello, I tried installing a theme from the available themes. I think the theme is called plutado_green. Immediately after installation I got this error message: "Fatal error: Call to undefined function _phptemplate_callback() in /home/content/a/l/a/alanvincenzi/html/speedlimits/themes/plutado_green/template.php on line 34" I've looked through the forums and even looked at the file itself, but I'm new to php, so couldn't do much about it. Ultimately, I just need to change the theme back to something else, so is there a way of manually changing the theme through the settings.php or an equivalent file? I couldn't find a way, please help. Thanks. Log in or register to post comments ⋅ Categories: Drupal 6.x Comments It sounds like styro commented October 17, 2008 at 5:14am you've tried installing a Drupal 5 theme on Drupal 6. -- Anton Log in or register to post comments Thanks styro, How can I vincenzi commented October 17, 2008 at 7:08am Thanks styro, How can I solve this without reisntalling? I have no access to the UI. Is there a way to set the theme from within the setting files? I've looked in settings.php and only has a backup theme option. Log in or register to post comments A few ways styro commented October 17, 2008 at 10:48pm If you've set your personal theme to the new one, you'll need to edit your user account row in the database (eg with PHPMyAdmin or on the command line). Look for the theme field. Note: to save time I'm assuming you know how to do edit DB fields outside Drupal - if not, ask away.... If you're just relying on the site default theme, you can uncomment the conf variables array in your settings.php. Look for this bit (you only need the default_theme setting... /** * Variable overrides: * * To override specific entries in the 'variable' table for this site, * set them here. You usually don't need to use this feature. This is * useful in a configuration file for a vhost or directory, rather than * the default settings.php. Any configuration setting from the 'variable' * table can be given a new value. Note that any values you provide in * these variable overrides will not be modifiable from the Drupal * administration interface. * * Remove the leading hash signs to enable. */ # $conf = array( # 'site_name' => 'My Drupal site', # 'theme_default' => 'minnelli', # 'anonymous' => 'Visitor', 'My Drupa
» Acquia Products and Services » Dev Desktop Call to undefined function _phptemplate_callback in template.php 3 posts / 0 new Log in or register to post comments Last post July 8, 2010 - 8:40am #1 philip.john Points: 0 Call to undefined function _phptemplate_callback in template.php Not sure if this is the right place to ask so apologies if so. I'm using v6 for a start. Basically, trying to view a user page (e.g. /user/1) gives this error: Fatal error: Call to undefined function _phptemplate_callback() in /var/www/sites/all/themes/[theme name]/template.php on line 272 Now, firstly there is no line https://www.drupal.org/node/322477 272 in template.php - the last line is 262! I thought maybe the profile module wasn't enabled (it is). There is no call to _phptemplate_callback in template.php. Any ideas? Phil Status:Resolved Top Log in or register to post comments July 8, 2010 - 9:57am #2 philip.john Points: 0 Okay, I've re-uploaded my template.php and refreshed the theme cache and now the user pages are https://forums.acquia.com/acquia-products-and-services/dev-desktop/call-undefined-function-phptemplatecallback-templatephp just blank. I had a user-profile.tpl.php in my theme which I removed and replaced with the original but neither of those two actions changed behaviour. The User module is there, too and working fine. Top Log in or register to post comments July 18, 2010 - 4:44am #3 c.mornard Points: 0 Hi Phil, Have you tried to remove user-profile.tpl.php completely? This to me sounds like the culprit. Top Log in or register to post comments Related Forum Posts Error installing DevDesktop on Mac OS X El Capitan 10.11.6 (15G31) with already-existing user's files Upgrading Drupal Core Going to "local site" just downloads Drupal 8.1.10 The website encountered an unexpected error. Please try again later. D8 Acquia on external drive Mac Active Forum Posts Delete AccountUpgrading Drupal CoreNewB Question re SSH Keys4096 bit ssh keyWordPress vs Joomla vs Drupal? Which is the best CMS for you?More Recent Topics WordPress vs Joomla vs Drupal? Which is the best CMS for you?Error installing DevDesktop on Mac OS X El Capitan 10.11.6 (15G31) with already-existing user's filesUpgrading Drupal CoreEvaluating Acquia: how to install a theme to devcloud?Not responding this site(http://wmgstartersitesandboxd85dxgtpsk.devcloud.acquia-sites.com)More Stay informed 855.430.7700+1.781.238.8600 (int'l)
in java_encode by mistake. I meant json_encode. I an using php 5.4. It still does not work. https://recalll.co/app/?q=json_encode()%20in%20eclipse%20php%20causes%20Call%20to%20undefined%20function%20json_encode()%20error I am also using zend debugger. It raises same error when I http://stackoverflow.com/questions/3664281/theming-webform-in-drupal do a simple Run rather than a Debug. I Is is a problem that my apache server uses php 5.1.4 from phpinfo() ...Apache/2.0.58 (Win32) PHP/5.1.4 json_encode() in eclipse php causes Call to undefined function json_en... View More at http://stackoverflow.com/questions/14914318/json-encode-in-eclips... extension=json.so Please make sure that you add it fatal error to the correct php.ini, the one that is used by your PHP command line interpreter (CLI). For example: /etc/php5/cli/php.ini json_encode() in eclipse php causes Call to undefined function json_en... View More at http://stackoverflow.com/questions/14914318/json-encode-in-eclips... PHP Fatal error: Call to undefined function imagecreatefromjpeg() php - codeigniter s3 image upload works locally but not on production ... View More at http://stackoverflow.com/questions/12661688/codeigniter-s3-image-... Even if fatal error call it doesn't make any sense , the problem seems to be with the code after this line : $jsonEncoding = json_encode($files->getAllFiles()); However, the error occurs on that line. I changed the code to the following and it works fine : function - PHP Fatal error: Call to undefined method - Stack Overflow View More at http://stackoverflow.com/questions/28996446/php-fatal-error-call-... PHP Fatal error: Call to undefined function _phptemplate_callback() in template.php Theming Webform in Drupal - Stack Overflow View More at http://stackoverflow.com/questions/3664281/theming-webform-in-dru... What you are asking for seems a little goofy, but you can get a similar effect by declaring all your functions as methods of a class and then implement __call as a method of that class to handle any undefined method calls. You can then handle calls to undefined methods however you like. Check out the documentation here. Is it possible in PHP to prevent "Fatal error: Call to undefined funct... View More at http://stackoverflow.com/questions/7116995/is-it-possible-in-php-... sudo apt-get install php5-json sudo service php5-fpm restart json - PHP Fatal error: Call to undefined function json_decode() - Sta... View More at http://stackoverflow.com/q
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Theming Webform in Drupal up vote 1 down vote favorite I'm trying to theme my webform but I can't seem to get the new webform_form_#.tpl.php to load properly. When I go to the node page I get a blank page on firefox with an empty body. So in Template.php i've added the following line (my webform is on node 4) function phptemplate_webform_form_4 ($form) { return _phptemplate_callback('webform_form_4', array('form' => $form)); } I have a webform_form_4.tpl.php in my sites/all/theme/forest_floor/ directory which is a copy paste from the modules/webform/templates/webform-form.tpl.php I've tried following the guide here, but I still get nothing when I visit the node page. Yes i've cleared the cache. I've also tried removed everything in the webform_form_4.tpl.php and just added the echo form_render($form); like between and I still get nothing. Any suggestions? drupal drupal-6 drupal-modules share|improve this question edited Sep 8 '10 at 5:40 user113292 asked Sep 8 '10 at 2:41 Jon Ruppet 62 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote A blank screen aka WSOD is properly due to a fatal PHP parse error. Try checking your apache error log. share|improve this answer edited Sep 8 '10 at 6:44 answered Sep 8 '10 at 5:36 googletorp 25.3k115175 2 The Drupal handbook has more information on how to troubleshoot a white screen of death. –user113292 Sep 8 '10 at 5:42 add a comment| up vote 0 down vote The link you are following on drupal node/79086 is for the older v4 of drupal Maybe this can help you http://drupal.org/node/335020 share|improve this answer answered Sep 8 '10 at 15:05 Drew 163 add a comment| up vote 0 down vote Weird it won't let me login to reply (for some reaso