Results 1 to 9 of 9

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: ...

      
  1. #1
    New Member
    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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)

  3. #3
    New Member
    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0


    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.

  4. #4
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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)

  5. #5
    New Member
    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0


    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

  6. #6
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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); ?)

  7. #7
    New Member
    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0


    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

  8. #8
    New Member
    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0


    Default

    I have upgraded the PHP now so no package needed.
    XTR support has been sorted.

  9. #9
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •