Fatal error: Call to undefined function description_site() - php

I'm having the following problem:
Fatal error: Call to undefined function description_site() in
C:\AppServ\www\host\includes\site_header.php on line 11
I go to the line. I do not have experience in modifying wrong?
The error in the following line
$template->rep_template('{description}',description_site());
Picture of the problem to be clarified more
Thanks in advance

Related

Error: Call to undefined function views_include() in include_once() (line 9 of code_dir:- \sites\all\modules\views\includes\plugins.inc)

Error
The website encountered an unexpected error. Please try again later.
Error messageError: Call to undefined function views_include() in include_once() (line 9 of code_dir:-\sites\all\modules\views\includes\plugins.inc).
If I commented this line, Then it is working fine. what is meaning of this line "views_include('base');"

Fatal error: Cannot redeclare imagecreatefrombmp()

I'm working on a simple imageboard based by TinyBoard (xampp), when I try to post with image, website gives me error for some reason:
Fatal error: Cannot redeclare imagecreatefrombmp() in C:\xampp\htdocs\inc\image.php on line 584
image.php:
[1]https://pastebin.com/xqj2NAuX
(584 line = 77 line)
PHP 7.2, any help?
ANSWER:
Just change the function name to something else on line 1:
function imagecreatefrombmp2($filename)
(from user3647971)
Just change the function name to something else on line 1 :
function imagecreatefrombmp2($filename) {
the error warns you that a function named exactly like this has already been declared. It's a built-in php function: http://php.net/manual/en/function.imagecreatefrombmp.php

PHP Fatal Error in Magento ver. 1.9.2.1

I keep having this problem flood by error_log:
PHP Fatal error: Call to a member function getRequestedRouteName() on a non-object in /home/bullion/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 226
Here is the code snippet from lines 224-229
public function getFullActionName($delimiter='_')
{
return $this->getRequest()->getRequestedRouteName().$delimiter.
$this->getRequest()->getRequestedControllerName().$delimiter.
$this->getRequest()->getRequestedActionName();
}
Thank you in advance for your help!

PHP fatal error: Call to a member function asXML() on a non-object

I'm attempting to run a php script to parse Google Calendar XML and I keep getting the following error:
Call to a member function asXML() on a non-object in /index.php on line 120
Here's a link to my code (I've notated Line 120 - IT IS LINE 38 ON PASTEBIN) http://pastebin.com/bMHXfbkD
Anybody with any ideas / fixes would be much appreciated!
UPDATE #Clover and #Phil have suggested I remove the line in question, which I did, and got this:
Notice: Trying to get property of non-object in /Library/WebServer/Documents/index2.php on line 125
Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/index2.php on line 125
simplexml_load_file function can return FALSE, so make a test before using it.
By the way, in your case, just remove the line, it does nothing :)
use try catch, and instead of using Exception class, try Throwable class

cakePHP: sporadic occurrence of "Call to a member function allow() on a non-object"

when I call a specifical controller-script of my Web-Application I sporadically get the following error:
Fatal error: Call to a member function allow() on a non-object in /srv/www/vhost/app/Controller/myController.php on line 11
Line 11 contains
$this->Auth->allow(array('get'));
Anyone an idea what this may cause?
Regards,
~MxAgent
Problem fixed. It was a caching-problem due to server doesn't support APC.

Categories