Setting up a new site, have an error with the store module.
This is for a file dload, free to dload no price.
When I click on dload I get the following
Have setup store before on other sites, and normally works fine.
<br />
<b>Warning</b>: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for //modules/boonex/files/data/files/1 in <b>//inc/classes/BxDolTwigModule.php</b> on line <b>864</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at //inc/classes/BxDolTwigModule.php:864) in <b>//inc/classes/BxDolTwigModule.php</b> on line <b>864</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at //inc/classes/BxDolTwigModule.php:864) in <b>//inc/classes/BxDolTwigModule.php</b> on line <b>865</b><br />
<br />
<b>Warning</b>: readfile(//modules/boonex/files/data/files/1) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in <b>//inc/classes/BxDolTwigModule.php</b> on line <b>866</b><br />
|
I noticed the 'filesize' comment, but this is same for any size file, even 8kb...! |
bump
anyone help with this?
|
:-(
still cant use my store...
|
Thought it might be a problem with having no price, but I tried uploading an item priced at $0 and leaving the price blank and had no problem with either one.
A few troubleshooting questions: Did you look at the coding at the lines referenced in the error msgs? Do you have any store modules? Have you tried uninstalling the Store module and reinstalling it? Have you tried clearing the cache? (Just kidding, don't think the cache does anything here, but it's always suggested! lol)
|
Tried all those!
I have several sites with store mod, even same files etc... all fine!
Dont know whats wrong with this one!
|
If you've uninstalled and reinstalled then it's probably a corrupt installation of the store module. You might try a step further, uninstall it and then re-upload a clean version of the store module entirely, clear the cache (for real this time!) and then reinstall the module. |
Stat Failed on the filesize function usually indicates filesize cannot read a file to get information about its size. Most of the time it indicates a permission problem.
The store module uses the files module for storage and the error indicates the same.
Check the folder modules\boonex\files\data\files and make sure it is writable.
If this site was transferred to another server or folder and this folder with existing files was also moved then the ownership of any existing files may also be incorrect which would require the ownership be corrected or the permissions on any files that exist in modules\boonex\files\data\files would also need to be made writable.
https://www.deanbassett.com |
The site was copied from server to server, checked the files/data/files and each file permissions and all the same as previous install.
I get the same problem if I upload a new file then try to dload that, still the same...
I wander if the database is still looking for the files on the old install when trying to dload them?
|
This is now causing big problems.
I installed a clean version of Dolphin using 7.9 and I get the SAME PROBLEM!!!
Support ticket to boonex came back with no help, was told Boonex no longer offer support for problems with 'installations' as they only have a small team of people who are working on developing the script.
So, back to the community...!
I have 2 other sites on my server with store module in use, and both work fine. So I know its not a general server issue.
Leaves me with the options its either something on my server thats changed that means settings need adjusting for each site, or its a Dolphin script problem after all... fact that the problem is there with a clean install narrows it down to server, or script. No modifications.
|
It goes deeper.
I have 2 sites that were setup a while ago, and the existing store files still work.
However, if I install a new store item, it wont work, gives same error!
So, it is server wide on all sites.
HFW contacted, if anyone knows what I can do on my end, please let me know!
|
Ok. Something else i noticed. There are double // at the start of the path in the error which also may be the problem.
Check inc/header.inc.php for any double / at the end of any paths.
Also try adding
RewriteBase /
to .htaccess just under RewriteEngine on https://www.deanbassett.com |
Hi Deano, yes the // is just my editing out the site name and so on!
Tried the htaccess and it does help, allows me to upload new files and they then download fine thanks :-)
Previous files still wont download though, which is a shame.
Any idea what would have caused this as its still a problem on my server, unless I adjust the htaccess on all new DOlphin installs, the problem will remain!
Appreciate your help Deano.
|
The addition of rewritebase to the .htaccess file i have only seen required on very few hosts. 1&1 and godaddy are the only 2 i am aware of that need it.
The fact that it previously was not needed and now it is indicates a change on the hosting side. That is something you will need to take up with your host.
https://www.deanbassett.com |
This is with HostForWeb.
They are aware of the problem and are looking into it.
Thanks for the help Deano.
|
Interesting, Ive noticed if I set a file to default, it will download.
If I set a file to members only, then it will give the error, even when I view it as a member.
Membership permissions for file download, and store product view are both enabled for members.
|
Can someone please check this for me? Make sure its not just me as my host are starting to suggest its not the server, but the script that is faulty...
try uploading a product to store, add 2 files to it with no price on them (free to dload)
make one members only, make the other default.
tell me if they both download when you are logged in as admin...
For me, the default one will, the members one gives the error at start of thread.
Thanks - Tim
|
They both work for me, no matter what permissions I set. (Just an FYI you can run your own tests at http://demo.boonex.com to see if it is just your install or a dolphin flaw) |
Yep, works fine for me on the demo site...
What would cause this problem on a server though, where a file set to members only access will cause the error, but a file set to 'default' will download fine!
Confused...
|