Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

language variables not included

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 04-12-2012, 03:34 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: language variables not included

No not yet, I was going to do that when I get back into work this morning. I'll update after I try that.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #12  
Old 04-12-2012, 05:20 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: language variables not included

That did not work. I re-downloaded the admin/pages.php file from the file area for 4.4.5. and uploaded it over the current copy, cleared caches and that still didn't do it. Any other ideas of what it could be?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #13  
Old 04-12-2012, 10:51 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: language variables not included

From the screen shot it looks like there is an error in a template file. Did you check /var/log for errors? Also, if debug_mode is set to 3 in config.php you may see the specific error on the screen. Since Custom Modules tab is appearing then maybe this was caused by the change made to that admin template.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #14  
Old 04-12-2012, 05:20 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: language variables not included

Cherie,
I'll check the templates, however that "Custom Modules" tab is not pulled from a language variable, it is hard coded. That tab is also on all my admin pages and they don't have the issue so I don't think it is going to be that. Changing the debug_mode to 3 didn't pop anything up and there is nothing in the logs dealing with this issue either. This is driving me nuts. Could it be something in the database table?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #15  
Old 04-12-2012, 05:33 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: language variables not included

My guess is that either the languages variables are at least partially missing or a template error is interfering with their display.

You could try printing out the variables for $lng when on that page to see if they exist. I would do this in php and tpl to compare them.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #16  
Old 04-13-2012, 06:53 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: language variables not included

I checked the $lng variables for the static pages and they are ok which makes sense because even common $lng variables such as $lng.lbl_search are missing from the static pages but are on all other admin pages. Even the <title></title> tag is empty in the source code for the static pages. It looks like the problem is in a file (php, or .tpl) that is EXCLUSIVE to dealing with static pages. I just am not sure which files those might me. I don't know enough PHP to check the pages.php file for an error but I did re-upload a new pages.php file from FILES AREA in x-cart. So if there is an error, it is in the original file so I doubt that is it.

I'm guessing that pages.tpl would be the only .tpl file EXCLUSIVE to the static pages and I haven't made any edits to that. What would cause pages.tpl to "not see" the variables?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #17  
Old 04-13-2012, 07:06 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: language variables not included

Quote:
Originally Posted by keystone
I did re-upload a new pages.php file from FILES AREA in x-cart. So if there is an error, it is in the original file so I doubt that is it.
Correct, the original files don't behave this way. It was probably working before then at some point a change was made that caused this. If you can backtrack to recent changes and find out what change affected this then that is probably the source of the problem. If someone installed a custom module they may be able to help track down the files that were changed.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #18  
Old 04-13-2012, 07:37 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: language variables not included

You may have something not properly closed in the template file. Do this - rename the template file, then create a new one with the same name, put in it just simply text like "test" or something. Then see if this text will show when you go to pages in admin. If it does and labels are there then somethign is wrong with your pages template file. If there are no labels again and text show then is some other template file you have changed. You can also turn developers mode on in config.php and see if any php error/warning will show
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #19  
Old 04-13-2012, 09:19 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: language variables not included

Steve, I did your test and the word "test" showed up but not the labels. So it is not the admin/pages.tpl file. The mods I installed were BCSE's Easy Variant View which doesn't deal with pages at all, CDSEO pro, and Altered Carts ON SALE mod. I looked through the installation instructions again and didn't see where any of the files involved would have an effect on Static Pages. I guess I'll go through and check to see if maybe when I copied the code I may have missed a closing bracket or something. I set the debug to 3 in the config.php file but am not getting any errors showing up yet.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #20  
Old 04-13-2012, 09:58 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: language variables not included

I noticed when I turned on the developer mode that I am getting this error in my test site, could it be related?

Quote:
Notice: Undefined variable: opener in /home/sites/www.uscandleco.com/web/DEV/web/admin/file_edit.php on line 108
that line says
Code:
$smarty->assign('opener', $opener);

I didn't edit this file so I'm thinking that it is not it.

*****************
nevermind, that error only shows up when I go to "edit templates" so it's not the problem.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:47 PM.

   

 
X-Cart forums © 2001-2020