1
nsluzewski
x-osCommerce 0.73 blank screens
  • 2009/1/21 4:42

  • nsluzewski

  • Just popping in

  • Posts: 15

  • Since: 2008/12/22


After setting up the basic features (store, products, etc.) pages associated with the osc application load as blank pages. When the xoc module is enabled, this same blank page behavior sometimes affects other installed module pages and I have on occasion totally lost access to my site. When the module is disabled in admin, everything returns to normal with all module pages displaying correctly. I have noticed (through trial and error) that clearing the local PC cache, cookies, saved passwords sometimes (but not always) restores access to some pages (but not always and not always all).

Is this a known issue or might I have done something wrong during the install. I am running on XOOPS 2.3.2b, PHP 5.2.8. I have come across the same behavior with an older x-osc version and have reinstalled several times.

I'm stuck in a big way.

2
ghia
Re: x-osCommerce 0.73 blank screens
  • 2009/1/21 11:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Any messages with PHP debug on?

3
nsluzewski
Re: x-osCommerce 0.73 blank screens
  • 2009/1/21 21:26

  • nsluzewski

  • Just popping in

  • Posts: 15

  • Since: 2008/12/22


As soon as I enabled debugging, I am receiving the following on first attempt to open portal home page after activating the xosC module:


Fatal error: Call to undefined function tep_db_query() in /home/vaultit/public_html/my/go/htdocs/modules/osC/blocks/shopping_cart.php on line 8
All errors (2) queries (38) blocks (13) extra (0) timers (4)
Errors
Notice: Constant BOX_HEADING_CATEGORIES already defined in file /modules/osC/language/english/blocks.php line 7
Notice: Use of undefined constant TABLE_LANGUAGES - assumed 'TABLE_LANGUAGES' in file /modules/osC/blocks/shopping_cart.php line 7

Line 8 of shopping-cart.php is:

$lang=tep_db_query($lang_query);

and its a part of the following if-then-else construct:

if(!isset($_SESSION['languages_id'])) {
$lang_query="select languages_id from ".TABLE_LANGUAGES." where directory ='".$xoopsConfig['language']."'";
$lang=tep_db_query($lang_query);
$lang_id=tep_db_fetch_array($lang);
$languages_id=$lang_id['languages_id'];
}else {
$languages_id=$_SESSION['languages_id'];
}

4
ghia
Re: x-osCommerce 0.73 blank screens
  • 2009/1/22 2:27

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


That if block should be placed below the includes block in /modules/osC/blocks/shopping_cart.php .

Remove one of the definitions for BOX_HEADING_CATEGORIES in /modules/osC/language/english/blocks.php

Login

Who's Online

370 user(s) are online (280 user(s) are browsing Support Forums)


Members: 0


Guests: 370


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits