72 questions
-1
votes
1
answer
33
views
codeigniter image not moving to folder: Undefined variable $file_name
VIEW:
<form method='post' action="<?php echo base_url('Reg_form/save')?>" enctype="multipart/form-data" name="reg_form">
<div class="form-row"&...
-5
votes
1
answer
484
views
undefined variable laravel 11 (can't run two methods)
My previous search method was running well after I implemented the method for calculations
**i got error undefined variable $formulas
C:\xampp\htdocs\MedusaDashboard\resources\views\superadmin\search....
0
votes
1
answer
78
views
JavasScript fetch/get Request / 2 times / 3 times click button [duplicate]
I am relative new to JavaScript.I have a "strange" problem: I have two input fields which when I click the sndBtn (clickEventListener), then 3 functions are called, all with a fetch/get ...
-1
votes
1
answer
4k
views
ansible play fails with error - The task includes an option with an undefined variable
The below ansible code fails with the error: The task includes an option with an undefined variable. The error was: 'storage_size_gb' is undefined
- debug:
msg: "{{ mongo_output_withoutvar....
0
votes
0
answers
194
views
Undefined Variable in SASS 'util.$font'
Just learning the ins and outs about SASS and I've run into a problem with variables. I have created a utility folder with my fonts file. In the fonts file, I created a variable called $font. When I ...
4
votes
1
answer
2k
views
Visual Studio Code is not showing an error for undefined variables PHP
I noticed that Visual Studio Code is not showing an error about undefined variables.
For example:
<?php
if ($test > 2) {
echo 'hi';
}
?>
If I run the code above, I would ...
1
vote
0
answers
690
views
How can I solve the variable is not defined error in jupyter notebook
Error in this statement that auth is not defined after i already defined it.
You can check the code.
import tweepy
consumer_key = 'xxx'
consumer_secret = 'xxx'
callback_url = 'ooo'
auth = tweepy....
3
votes
4
answers
3k
views
Undefined variable in laravel blade file
I am new to laravel kindly help me out to solve this error.
This is my controller function "edit"
public function edit($id)
{
$user = User::find($id);
return view('users.edit-profile'...
0
votes
2
answers
4k
views
Getting undefined value of .env in nodejs
I am getting "undefned value of .env in nodejs. my .env file is on root directory.need help
my code for .env file:-
SECRET_KEY=mynameissuky
my app.js file:-
require('dotenv').config();
console....
1
vote
2
answers
320
views
Why is my code showing this error: Undefined Variable
I am trying to migrate my foreign key and display the list of employees in company form. for that:
1.My CompaniesController
public function index(){
$cat = Company::all();
return view(view:...
-1
votes
1
answer
333
views
Dog Age Calculator Python Undefined Name Error
I am trying to create a program that when a dogs age is inputted it will figure out the age in human years. If a negative number is inputted it should print that a negative number is not valid. Also ...
0
votes
1
answer
620
views
Laravel 6 Undefined variable: jobs
I think there is no error but Laravel shows the following error:
Undefined variable: jobs
public function jobCreate(Request $request){
$data['jobs'] = DB::table('jobs')->get();
$...
1
vote
4
answers
208
views
Trying to use the return value from one function in another but getting undefined variable instead
I have this code:
class Pet(object):
def __init__(self,name=""):
self.name = name
self.kind = "Unknown"
self.toys = []
def add_toys(self,toys):
...
1
vote
1
answer
1k
views
Python / Spyder - Undefined variable error, when variable is defined and shown in the environment. Code works even with the error
I am getting a strange error when defining variables in Python 4.1.5 (IDE:Spyder). However, even with the error, the code runs without any issues!
As you can see, the variable social_cost_of_carbon is ...
0
votes
0
answers
16
views
How to solve Notice: Undefined variable error in php [duplicate]
I am currently creating a class named pizza in php with two attributes: name and price.
<?php
class Pizza{
private $name;
private $price;
public function ...
2
votes
1
answer
1k
views
Check if arguments passed into a function are defined or not in r?
I want to know how the existence of a variable passed into a function can be checked before applying more operations on them inside the function. So that if a variable is not found, it could be ...
2
votes
1
answer
801
views
Laravel 7: Undefined variable in foreach loop
I want to display to select the campus from the campuses table in my budget allocation create.blade.php template but it displays an error.
create.blade.php
<div class="form-group row">
...
0
votes
1
answer
240
views
Undefined variable:users.....Variable conflict when using a resource controller index and store method in laravel
I'm unable to redirect my controller to the same view index.blade.php after store method, it gives an error Undefined Variable :users, while I redirect through index method, it works fine. How do i ...
0
votes
1
answer
705
views
Message: Undefined variable: beauty_detail in CODEIGNITER [duplicate]
I have a form where user can select either book or beauty radio button. Code is working fine on book but showing an error on beauty. Code is the same except data fetch from database is different. I ...
1
vote
1
answer
1k
views
Undefined variable on Laravel
I´m a beginner starting with Laravel. I´m trying to show a question made on this website.
Here is the Controller page:
public function show($id)
{
//Use the model to get 1 record from the ...
1
vote
1
answer
3k
views
Checking If variable is undefined in Google Tag Manager
I have this piece of code as a javascript custom variable in the Google Tag Manager. I would like to get breadcrumbs content.
This part of the code works well. But some pages do not have breadcrumbs,...
0
votes
0
answers
573
views
Undefined variable error for calling a object constructor
I have a class ReadBugXML in a folder called code and I added a __init__.py to make the code as a package. main.py and code are in the root folder. My main file looks like this.
import sys
from code ...
1
vote
3
answers
593
views
It seems only lisp allow use a variable without define it first?
I found it seems only in lisp can define this:
(lambda (x)(+ x y 1))
in other languages,even it's functional language,a variable must define first,then to use it
so in lisp,there is concept "free ...
0
votes
0
answers
49
views
Undefined variable: design_json_data (View: D:\xampp\htdocs\shopist\resources\views\pages\frontend\frontend-pages\frontend-designer.blade.php)
I get this error:
Undefined variable: design_json_data (View: D:\xampp\htdocs\shopist\resources\views\pages\frontend\frontend-pages\frontend-designer.blade.php)
There is a designer where I add ...
0
votes
2
answers
102
views
Undefined view in blade for Laravel
I am facing an issue with an undefined variable in a blade view for my Laravel project.
I believe I have defined everything correctly
This is the line in the blade view which is causing my issue.
&...