Page 1 of 1

[Solved] Undefined variable: text_edit in...

Posted: Sat Oct 04, 2014 3:34 am
by Gilmore
If you get the error...

Code: Select all

Notice: Undefined variable: text_edit in /home/....../admin/view/template/setting/setting.tpl on line 29
Here is the FIX...

It seems that in the admin/controller/setting/setting.php that is is missing the call for the text_edit. To fix it, follow these instructions below!

In admin/controller/setting/setting.php on line 26 find...

Code: Select all

           $data['heading_title'] = $this->language->get('heading_title');
After it Add...

Code: Select all

          $data['text_edit'] = $this->language->get('text_edit');
REMEMBER TO USE THE SEARCH BEFORE YOU ASK ABOUT A BUG AS IT MAY BE FIXED ALREADY!

That's it! Enjoy!

Re: Undefined variable: text_edit in... - FIXED

Posted: Sun Oct 05, 2014 11:27 pm
by jlbgilbert
I'm confused because mine line 26-30 looks like this:

<?php } ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_edit; ?></h3>
</div>

Am I not understanding something?
Many Thanks

Re: Undefined variable: text_edit in... - FIXED

Posted: Tue Oct 07, 2014 4:06 am
by ihateclownz
Yes, you are missing something.. you are in the wrong folder
In admin/controller/setting/setting.php on line 26 find...

Re: Undefined variable: text_edit in... - FIXED

Posted: Tue Oct 07, 2014 5:50 am
by Gilmore
jlbgilbert wrote:I'm confused because mine line 26-30 looks like this:

<?php } ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_edit; ?></h3>
</div>

Am I not understanding something?
Many Thanks
It's because you are in the wrong file! READ it again and get the right file and then you should be fine!

Re: 2.0 - Undefined variable: text_edit in... - FIXED

Posted: Tue Oct 07, 2014 7:45 am
by protechtrader
I had errors relating to this and I can confirm this fix god rid of them for me.

Re: OC 2.0 - Undefined variable: text_edit in... - FIXED

Posted: Fri Oct 10, 2014 8:30 pm
by Concept211
Quick and dirty vQmod for it (attached).

Re: [Solved] Undefined variable: text_edit in...

Posted: Sun Oct 12, 2014 12:24 am
by saltsalty
Worked for me thank you :-)

Re: [Solved] Undefined variable: text_edit in...

Posted: Sat Oct 18, 2014 7:57 pm
by JavierG
Thanks, this works for me!

Re: [Solved] Undefined variable: text_edit in...

Posted: Sat Oct 25, 2014 7:29 pm
by thoughtfulthumb
On the account login page on the front end, I'm getting errors with headings.. See image
Where it's coming up with text_new_customer, text_returning_customer etc

Would there be a similar fix for this or should I post a new topic?

Thanks

Re: [Solved] Undefined variable: text_edit in...

Posted: Mon Oct 27, 2014 1:39 am
by thoughtfulthumb
Anyone?

Re: [Solved] Undefined variable: text_edit in...

Posted: Fri Nov 07, 2014 6:39 am
by thoughtfulthumb
The fault i had above was rectified (finally after hours and hours of back tracing) by deleting and uploading a new "login.php" file under this path = catalog/language/english/account/

Hope it helps others.

Re: [Solved] Undefined variable: text_edit in...

Posted: Fri Nov 07, 2014 1:35 pm
by jurpro
thoughtfulthumb wrote:The fault i had above was rectified (finally after hours and hours of back tracing) by deleting and uploading a new "login.php" file under this path = catalog/language/english/account/

Hope it helps others.
it seems you upgrade from 1.5.x
My fresh OC 2.0 install is fine.

Re: [Solved] Undefined variable: text_edit in...

Posted: Sun Nov 09, 2014 3:07 am
by thoughtfulthumb
I did initially yes, however i encountered other issues, along with the common issue of upgrade not working, so i simply deleted everything then did start fresh, so with this fault, i did in fact have a clean install :/

Re: [Solved] Undefined variable: text_edit in...

Posted: Thu Dec 11, 2014 6:57 am
by IconDigitalUSA
Thank you for this note on fixing this. It wasn't really causing me any errors, but it was certainly aggrivating my OCD.
thoughtfulthumb wrote:Would there be a similar fix for this or should I post a new topic?
Glad to hear you got that fixed. It sounds like you were missing a ' or " somewhere in one of your language or controller files, so it was printing the variable and data names instead of their contents.

-Rob at Icon

Re: [Solved] Undefined variable: text_edit in...

Posted: Wed Dec 17, 2014 2:57 am
by thoughtfulthumb
Yes indeed me too! currently upgrading to 2.0.1 just hope it doesn't happen again.

Re: [Solved] Undefined variable: text_edit in...

Posted: Tue Nov 03, 2015 10:03 pm
by cherrydesigns
Mine looks like this

"$data['heading_title'] = $this->language->get('heading_title');
$data['text_edit'] = $this->language->get('text_edit');
$data['text_edit'] = $this->language->get('text_edit');"

But still getting that error, i've looked in

Notice: Undefined variable: icon in /home/cherryde/public_html/customers/innerpeace/catalog/view/theme/ancart/template/common/header.tpl on line 20

<?php if ($icon) { ?>

Undefined property: Loader::$language in /home/ashaimaharaja

Posted: Mon Sep 12, 2016 12:54 pm
by kalpana
Please can any one help me

Thank you

Re: Undefined property: Loader::$language in /home/ashaimaha

Posted: Tue Sep 13, 2016 12:14 am
by Cue4cheap
kalpana wrote:Please can any one help me

Thank you
Maybe but you replied to a post with the las reply from "Tue Nov 03, 2015 8:03 am " and it wasn't you who posted...

What do you need help with?

Mike

Re: [Solved] Undefined variable: text_edit in...

Posted: Tue Feb 27, 2018 8:27 pm
by hellrider140684
Hi! Can you help my please! My Opencart version 1.5.6.1
Today this message appears : Notice: Undefined variable: code in /home/hellride/skyboard.net.ua/www/admin/model/module/currency_update.php on line 79 What is this, how can i remove this message?