CRE Loaded Community

Banner


Board index » Loaded Commerce Support » Install & Config

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Pages.php infobox problem
PostPosted: Thu Dec 18, 2008 7:24 pm 
Offline
CRE Newbie
User avatar

Joined: Sat Dec 06, 2008 5:20 pm
Posts: 20
When I setup a new infobox with pages.php I get this error message.

Error reported on page /index.php

MySQL error: 1054 - Unknown column 'ip.pages_id' in 'on clause'

select ip.pages_id, ipd.pages_title from pages ip, pages_description ipd left join pages_to_categories ip2c on ip2c.pages_id = ip.pages_id where ipd.pages_id = ip.pages_id and ip2c.categories_id = '0' and ipd.language_id = '1' and ip.pages_status = '1' order by ip.pages_sort_order, ipd.pages_title

anyone know whats going on here?

www.trailheadcampinggear.com


Top
 Profile  
 
 Post subject: Re: Pages.php infobox problem
PostPosted: Fri Dec 19, 2008 10:07 pm 
Offline
CRE Freak
User avatar

Joined: Mon Oct 13, 2008 9:04 pm
Posts: 55
Replace the query in template >> your default template >> boxes >> pages.php with the following.


// pages outside categories
$pages_query = tep_db_query("select ip.pages_id, ipd.pages_title from " . TABLE_PAGES . " ip, " . TABLE_PAGES_DESCRIPTION . " ipd left join " . TABLE_PAGES_TO_CATEGORIES . " ip2c on ip2c.pages_id = ipd.pages_id where ipd.pages_id = ip.pages_id and ip2c.categories_id = '0' and ipd.language_id = '" . (int)$languages_id . "' and ip.pages_status = '1' order by ip.pages_sort_order, ipd.pages_title");

_________________
Regards,

Mahesh Sawant

Cre Loaded Staff


Top
 Profile  
 
 Post subject: Re: Pages.php infobox problem
PostPosted: Tue Dec 23, 2008 3:45 pm 
Offline
CRE Freak
User avatar

Joined: Thu Nov 22, 2007 6:50 pm
Posts: 90
Location: Dublin Central
Yea! :D


Top
 Profile  
 
 Post subject: Re: Pages.php infobox problem
PostPosted: Mon Apr 13, 2009 7:42 pm 
Offline
CRE Freak
User avatar

Joined: Fri Aug 03, 2007 12:00 am
Posts: 47
Location: Bay Area
Thank you Mahesh for that fix!

I looked at the query you said to replace and it looked the same in the original source code included in Cre Loaded's pages.php. Then a code compare tool showed where you had fixed it.

The query on pages.php in the original code had a syntax error, missing a "p" in that query so that it specified "ip.pages_id" and your revision specified "ipd.pages_id" midway through that query.

Whew, what a great thing to find, thank you again Mahesh :D

This latent problem only showed up for me on one website which has an extra infobox and that's the one that came up with the error "MySQL error: 1054 - Unknown column 'ip.pages_id' in 'on clause".

Note: this error ONLY occurred after an update on my hosting server from PHP 5.2.6 to PHP 5.2.9, also the OpenSSL compiled in to PHP went from 0.9.7a to 0.9.8e-fips-rhel5, and THAT's what triggered the error.

All is well now, so I am going to include this fix into all my Cre Loaded websites so that in the future when a PHP update and the addition of extra infoboxes won't break them.


Top
 Profile  
 
 Post subject: Re: Pages.php infobox problem
PostPosted: Wed Aug 25, 2010 5:10 am 
Offline
CRE Newbie

Joined: Fri Aug 20, 2010 4:00 am
Posts: 2
i got the same problem. after i replace the code to my template/boxes/pages.php


the problem still the same..please help...


my template is 6.2 and installed cre loaded 6.3 b2b version

no problem previously but after i installed a new infobox..the problem arise..


my website is www.sunvastdigital.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Board index » Loaded Commerce Support » Install & Config

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Tue Feb 07, 2012 11:18 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy