Smarty error, catchable fatal error - php

I recently made a site for someone with Smarty, everything worked like it should. When I had to edit something today (~ 2 weeks after initial release) i deleted the smarty cache to update all pages, now the pages are not generated anymore, it only gives the following error:
Catchable fatal error: Argument 1 passed to _smarty_template_buffer::append_subtree() must be an instance of _smarty_parsetree, instance of _smarty_text given, called in /home/public_html/classes/Smarty/sysplugins/smarty_internal_templateparser.php on line 2167 and defined in /home/public_html/classes/Smarty/sysplugins/smarty_internal_parsetree.php on line 268
The weird thing is, after some page refreshes it randomly does generate the page without the error. I can't tell why this behaviour is happening.
The PHP version is 5.4.17
Can anyone help me with this problem?

Related

Wordpress site returning fatal error "Cannot redeclare wp_get_server_protocol() (previously declared in /home/...."

I have a wordpress site which is returning the following
Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /home/wryl/public_html/wp-includes/load.php:16) in /home/wryl/public_html/wp-includes/load.php on line 21
It's not a site i have anything to do with normally but have been asked if i can fix this issue. I've attempted to re-upload clean wordpress files (wp-admin & wp-includes) and made sure all the permissions have been set correctly but still get the above error. I'm a little lost as to what to try next

How to debug "Catchable fatal error: Object of class WP_Error" in WordPress?

I just got run into the problem, many of my wordpress sites are showing me error
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/sitename/public_html/wp-includes/default-constants.php on line 248
not one, many sites started showing this error, but not all sites, All of my these sites are on one server but only few are showing me this error, I haven't done anything to WordPress or code and haven't installed any new plugin, I also tried removing all plugins but nothing could helped me, can you please tell me what's the issue?

fixing Zend2 Framework 404 error has now given me fatal error: ModuleEvent::setModuleName expects a string as an argument; integer provided'

Fatal error: Uncaught exception '`Zend\ModuleManager\Exception\InvalidArgumentException' with message 'Zend\ModuleManager\ModuleEvent::setModuleName expects a string as an argument; integer provided' in C:\wamp\www\zf2-tutorial\vendor\zendframework\zend-modulemanager\src\ModuleEvent.php on line 64***
I'm new to Zend and trying the Skeleton application exercise
On attempting to load http://zf2-tutorial.localhost/album I was getting error
404 -"The requested URL could not be matched by routing".***
So I then followed some suggestions on Stackoverflow and it seems to have messed things up altogether for me.
One suggestion was to put die('here'); in the indexAction to see what error shows up. So I tried it, got the above error and then deleted the same line again from indexAction.
However the same error persists and I am unable to resolve it. I'm using WAMP on Windows 8.
To try to resolve it I cleared the DNS cache, cleared browser history and cookies, restarted all services, rebooted, refreshed WAMP...but still the same. Any Ideas please?

ß Fatal error: Cannot redeclare get_header

Code Wizards,
I currently have a website that uses wordpress, and recently had some malware problems. I deleted some files without thinking what they did. While trying to restore the site after getting internal sever errors, I soon started to get errors similar to the one below. However I'am stuck on this one, on what it means/wants me to do.
ß Fatal error: Cannot redeclare get_header() (previously declared in /hermes/bosnaweb10a/b2702/ipg.cjhgraphicdesigncom/wp/wp-includes/general-template.php:21) in /hermes/bosnaweb10a/b2702/ipg.cjhgraphicdesigncom/wp/wp-includes/link-template.php on line 43
I would really appreciate any knowledge on this, my php skills are not the best.
Thank you!

Drupal failed after update

I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs:
Fatal error: Call to undefined function _system_default_theme_features() in /[drupal_path]/includes/theme.inc on line 1422
and when I reload it another fatal error apperars:
Fatal error: Call to a member function getDirectoryPath() on a non-object in /[drupal_path]/modules/image/image.module on line 83
next reload – first error, one more – second. Also, second error is loading much faster.
And one more thing, after applaying update.php I got one failed, I don't know if this is connected:
media_gallery module
Update #7009
Failed: FieldException: Próba aktualizacji egzemplarza nieistniejącego pola media_gallery_media. w field_update_instance() (linia 557 z /[drupal_path]/modules/field/field.crud.inc).
which is something like:
Failed: FieldException: Attempt to update an instance of a nonexistent field media_gallery_media. in field_update_instance() (line 557 in /[drupal_path]/modules/field/field.crud.inc).
PHP Version 5.5.6
Any tips where the problem is? I was trying disabling some modules from db, but this did't help.
It's difficult to explain the reason and to provide a solution.
My attempt would be to copy the DB and the files on a neutral platform (local machine or so) and experiment with the update.php script.
My suspicion would be that media module needs also update since it's using the old URI function definition (call). Also try to update other modules that are working with files.
The update is quite big since 7.4 to 7.22 (years of improvement). Reading the change log would be helpful but not realistic.
Did you also cleared the cache? (via drush if the web interface not working - /?q=admin/config/development/performance)
Please don't forget to post the solution if you find one for other users with the same issue.

Categories