An undefined function is a function that fails to execute when called due to the body of the function not being available to the program, compiler, or interpreter, looking for a function definition.
Questions tagged [undefined-function]
143 questions
1
vote
1 answer
Fatal error: Call to undefined function tep_session_name()
I am trying to update one of the sites I maintain to the latest PHP and during this, I have come across the following error:
Fatal error: Call to undefined function tep_session_name() in ... /includes/application_top.php on line 83
The code it is…

evbeej
- 11
- 3
1
vote
1 answer
Function inside a script tag inserted via javascript remains undefined
My problem is that when I create a script tag trough javascript
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
document.getElementById("fastexe").appendChild (script);
(the div…

Apotheose
- 11
- 2
1
vote
2 answers
Call to undefined method CI_Loader::template() when move to hosting server
I am using CI 3 and all functions area working in my local server.
But when i uploaded it to the webhosting server it give me this error:
Call to undefined method CI_Loader::template()
My controller "Main.php" has the code:
class Main extends…

user3651476
- 171
- 1
- 9
- 20
1
vote
1 answer
Tic-Tac-Toe Win checking function
I'm writing a tic tac toe game and part of the 'coding rules' is that there should be a 'checkwin' function to see whether a player has won or not. I have defined two variables called 'tttXArray' and 'tttOArray' to see whether one player has gotten…

Anas Yousef
- 93
- 1
- 7
1
vote
2 answers
Remove and re-add a function javascript?
How would I re-add a function so far I've done addSplatter = undefined;
now this works perfectly for removing the function/breaking it so it doesn't do the function anymore but how would I re-add the function I've tried
addSplatter =…

user3112634
- 523
- 4
- 10
- 26
1
vote
2 answers
load PHP extension module failed
What I would like is to build a *.so , then make it as a PHP extenstion module and call the functions in the *.so via PHP.
My step is as below:
Build the C library under linux, first Create the hello.c
int hello_add(int a, int b)
{
return…

Bright Liu
- 57
- 1
- 1
- 8
1
vote
2 answers
Php function calling, Undefined function error
Earlier I have a form that ask user to upload a picture and I have this function:
function fileUploaded() {
$fileName = $_FILES ['picture'] ['name'];
$pathOfFile = "/images/";
$fileTmpLoc = $_FILES ['picture'] ["tmp_name"];
…

ekrem777
- 35
- 2
- 8
1
vote
1 answer
Showing fatal error call to undefined function _e() in wordpress
Please help me out
I have added a search box widget to my site http://www.immostwanted.com.
And when I am trying to search some item it is showing the error as
Fatal error: Call to undefined function e_() in…
user2709893
1
vote
1 answer
Android NDK: no error or warning when calling undeclared function
I'm building a library in C with the Android NDK which links to some static libraries provided by another team. If I call a function that's defined in one of those libraries, but not declared by any of my imported headers, I get no error or warning…

jason44107
- 399
- 2
- 13
1
vote
2 answers
Vanilla JavaScript with Function, function not defined
$(function() {
var script = document.createElement('script');
script.id="filepicker";
script.type="text/javascript";
script.src="//api.filepicker.io/v1/filepicker.js";
var body=document.querySelectorAll("body")[0]; ;
body.appendChild(script);
…

EasyBB
- 6,176
- 9
- 47
- 77
0
votes
1 answer
Undefined is not a function - react-native onPress
undefined is not a function error that points to this line in my code:
onPress={() => handleCardPress(item)}
I'm following along with this tutorial:
React-Native App
I tried adding this to test if anything changed but I got the same error:
const…

codereyes
- 47
- 9
0
votes
1 answer
Wordpress call to undefined function update_plugin() when handling php forms
I am creating a wordpress plugin that takes form inputs and stores them as wordpress options. However, I receive the error Fatal error: Uncaught Error: Call to undefined function update_option() in…

maxipoo
- 1
- 1
0
votes
0 answers
Linker error on "Undefined reference" to functions written a new file, but works fine when same functions are added to existing file
I have a project PROJ with an external submodule SUB. The submodule invokes some external functions f1(), f2(), f3() that are not defined in our project, so the linker fails with 'undefined reference' to these functions. These functions are not…

Photonslave
- 9
- 1
0
votes
1 answer
Phoenix LiveView - (UndefinedFunctionError) no function clause matching with event_handler without any event to handle
This seems to be strange for me, but without any updates of libraries or even elixir part of app doesnt work like before.
I have got few views which show list of products, categories, brands etc. Problem seems to be repeated everytime being in show…

Mateusz Babski
- 11
- 3
0
votes
1 answer
Undefined function in React
I am having an error: Cannot read properties of undefined reading((Id)).
const PostWidget = ({
postId,
postUserId,
name,
description,
location,
picturePath,
userPicturePath,
likes,
comments,
}) => {
const…

olamide
- 1