osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Fresh installation problem

This is a discussion on Fresh installation problem within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; After installing a fresh installation and resetting the file permissions I get the following on the main shop page:- Warning: ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-15-2005, 05:26 AM
New Member
 
Join Date: Nov 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbhs
Default Fresh installation problem

After installing a fresh installation and resetting the file permissions I get the following on the main shop page:-
Warning: Wrong parameter count for basename() in /home/sites/site10/web/shop/includes/configure_bts.php on line 109

Warning: Wrong parameter count for basename() in /home/sites/site10/web/shop/includes/configure_bts.php on line 111

Any ideas - latest version installed.

Thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-15-2005, 07:14 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default RE: Fresh installation problem

Hi bbhs,

What PHP version do you use? Quite an old version I suppose?

(note I just installed osCMax v2.0rc2, and all works fine here, on PHP4.3.10)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-15-2005, 07:36 AM
New Member
 
Join Date: Nov 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbhs
Default

Just waiting for my client to open up his server he says he has got PHP ver 4.3.8 but I think he has 4.0.6
I was thinking maybe a PHP problem myself - thanks for replying.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-15-2005, 07:43 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Quote:
Originally Posted by bbhs
Just waiting for my client to open up his server he says he has got PHP ver 4.3.8 but I think he has 4.0.6
I think so too.

The problem probably is that: "The suffix parameter was added in PHP 4.1.0.".

And allthough it is not very difficult to work around this, i think it is wiser to upgrade PHP, with a PHP version that old it is likely you will have other problems/errors as well.

edit: btw, if the admin works, you can see the PHP version under "Tools :: Server Info" (admin/server_info.php)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-16-2005, 02:40 AM
New Member
 
Join Date: Nov 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbhs
Default

Yes he has a early version of php but his server is a Cobalt raq XTR !!
Anybody have a PHP pkg for this server version 4.3 or above ??

Thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 06-16-2005, 05:18 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Quote:
Originally Posted by bbhs
Yes he has a early version of php but his server is a Cobalt raq XTR !!
Anybody have a PHP pkg for this server version 4.3 or above ??

Thx
Meanwhile you can try this:

replace the "case 'stylesheets':" part including the "break;" by (line 107-116):
Code:
    case 'stylesheets':
      // for example to load different stylesheets per page :: new
      if(is_file(DIR_WS_TEMPLATES . 'stylesheets/' . basename(str_replace ( '.php', '', $filename )) . '.css')) {
        $path = DIR_WS_TEMPLATES . 'stylesheets/' . basename(str_replace ( '.php', '', $filename )) . '.css';
      } elseif (is_file(DIR_WS_TEMPLATES_FALLBACK . 'stylesheets/' . basename(str_replace ( '.php', '', $filename )) . '.css')) {
        $path = DIR_WS_TEMPLATES_FALLBACK . 'stylesheets/' . basename(str_replace ( '.php', '', $filename )) . '.css';
      } else {
        return (FALSE);
      }
    break;
Untested, so hopefully w.o. typos

It is not the same, but it should work fine I think.
(only for files with multiple ".php" in the filename it would become confusing, then maybe use substr ($filename, '', -4); ?)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 06-16-2005, 06:40 AM
New Member
 
Join Date: Nov 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbhs
Default

Yep that worked fine - Thanks for that.
If anybody knows where I can find an updated PHP pkg for the Raq XTR please let me know.

Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 06-17-2005, 04:15 AM
New Member
 
Join Date: Nov 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbhs
Default

I have upgraded the PHP now so no package needed.
XTR support has been sorted.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 06-17-2005, 06:44 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Ok, thanks for letting me know.

I will ask Michael if this needs to be fixed, I have no idea about how many people depend on these old PHP versions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Can't checkout: help!! Fresh installation of osCMax v2.0. best-decals.com osCMax v2 Installation issues 1 07-14-2005 10:33 PM
Fresh Install Ms2-Max Installation Error edwardbob osCMax v1.7 Installation 4 05-28-2005 03:35 PM
complete fresh installation but errors thatsme osCommerce 2.2 Installation Help 4 04-27-2005 12:07 PM
Errors after fresh installation Christy osCMax v1.7 Discussion 21 03-16-2005 08:55 AM
SQL syntax error from a fresh installation BrentonV osCMax v1.7 Installation 3 12-07-2004 01:07 PM


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


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax