Hi once again,
Since I had success with installing the 1.05 and the version that was giving the problem was 1.5, I sat down and looked at the install.php from both of them side by side.
In the new 1.5 version right after the checkallfiles function, starting on line 111 you have the following script:
$oks = 0;
//print_r($file_list);
$f1='';
foreach($file_list as $fl){
@chown($fl, 'php');
@chmod($fl, "0777");
}
foreach($file_list as $fl){
if(checkFIleRights($fl)) $oks++;
}
if($oks == count($file_list)) return true;
else return false;
}
I then checked how version 1.05 was written and found that it was slightly different:
$oks = 0;
foreach($file_list as $fl){
if(checkFIleRights($fl)) $oks++;
}
if($oks == count($file_list)) return true;
else return false;
}
The only difference between these two pieces of code is the current 1.5 version of install.php has an extra "foreach" conditional. Needless to say, what I did was completely delete bosscart again, I deleted the 1.05 version of the database that was created and started fresh. This time around after I changed all the proper files to 777 permissions and before I went to my web browser to start the install, I edited the install.php file and commented out lines 115 - 118, to remove the first foreach conditional:
112 $oks = 0;
113 //print_r($file_list);
114 $f1='';
115 /* foreach($file_list as $fl){ COMMENTED OUT
116 @chown($fl, 'php'); COMMENTED OUT
117 @chmod($fl, "0777"); COMMENTED OUT
118 } */ COMMENTED OUT
119 foreach($file_list as $fl){
120 if(checkFIleRights($fl)) $oks++;
121 }
122 if($oks == count($file_list)) return true;
123 else return false;
124 }
I then executed the install.php file from the web browser and suddenly it tells me that Write Files: Passed! I went back to the server to check and the file permissions were holding steady at 777, they did not revert back
I was able to complete the install by doing this, the database accessed properly and all the tables were created without an issue.
That is the good news, there is bad news however. Even though all the file permissions are set and staying that way, I logged into the admin and browsed around, everything looked good. I created a test product, when I went to upload an image, the image did not display. 5 files were written to the /bosscart/shop/products/images folder:
000001.1.big.image
000001.1.icon.image
000001.1.medium.image
000001.1.small.image
000001.1.thumb.image
In the product edit screen all the information is there but where it displays the image I am getting a broken image. When I right click on that broken image the URL it gives me is not one that exists:
/bosscart/products/000001/Notebook/images/icon/1
Then I decided to check the front end of the shopping cart, to see if maybe it displays for customers to see. I clicked on the link "Your Online Store" and I get a "400 Page cannot be found error" it is looking for something (some sort of index or home page I am assuming) in the main /bosscart/ directory and not finding anything.
I am possitive that everything is able to write to whatever files need write access, as was proved by the 5 files that wrote themselves above when I uploaded the image in the first place. I am also fairly confident that changing the install script to remove the conditional that was causing the files to change permission improperly is not the issue at this point.
I am lost and I am sorry to be such a huge pain about this whole thing.
Thanks for any time you can give me in advance!
Cheers,
Will
PS. On the Products page in the Admin Control Panel the Price field does not seem to retain a decimal value, it drops off the decimal and the last two digits, and I am also wondering how I configure the site to not read in pounds but in US Dollars. (These last two issues are very minor compared to everything else)