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: ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| Quote:
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
| |||
| |||
| 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
| |||
| |||
| Quote:
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;
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
| |||
| |||
| 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
| |||
| |||
| I have upgraded the PHP now so no package needed. XTR support has been sorted. |
|
#9
| |||
| |||
| 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. |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |