CPC900 Posted April 20, 2016 Report Posted April 20, 2016 Just getting back into editing my site and got this error when trying to import a new schedule: [b]Warning[/b]: move_uploaded_file(/home/woodsdom/public_html/CPC/core/cacheschedules_ttz_wip.csv) [[url="http://www.canadianclassicairlines.com/CPC/admin/index.php/import/function.move-uploaded-file"]function.move-uploaded-file[/url]]: failed to open stream: Permission denied in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] on line [b]209[/b] [b]Warning[/b]: move_uploaded_file() [[url="http://www.canadianclassicairlines.com/CPC/admin/index.php/import/function.move-uploaded-file"]function.move-uploaded-file[/url]]: Unable to move '/tmp/phpWOE4OY' to '/home/woodsdom/public_html/CPC/core/cacheschedules_ttz_wip.csv' in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] on line [b]209[/b] [b]Warning[/b]: fopen(/home/woodsdom/public_html/CPC/core/cacheschedules_ttz_wip.csv) [[url="http://www.canadianclassicairlines.com/CPC/admin/index.php/import/function.fopen"]function.fopen[/url]]: failed to open stream: No such file or directory in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] on line [b]211[/b] [b]Warning[/b]: fgetcsv() expects parameter 1 to be resource, boolean given in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] on line [b]227[/b] The import process is complete, added 0 schedules, updated 0, for a total of 0 [b]Warning[/b]: unlink(/home/woodsdom/public_html/CPC/core/cacheschedules_ttz_wip.csv) [[url="http://www.canadianclassicairlines.com/CPC/admin/index.php/import/function.unlink"]function.unlink[/url]]: No such file or directory in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] on line [b]357[/b] Line errors 209, 211, 227, 357 are: move_uploaded_file($temp_name, $new_name); $fp = fopen($new_name, 'r'); while ($fields = fgetcsv($fp, 1000, ',')) { unlink($new_name); I have no idea what I am missing here Any help would be appreciated. Quote
Administrators simpilot Posted April 23, 2016 Administrators Report Posted April 23, 2016 function.move-uploaded-file"]function.move-uploaded-file[/url]]: failed to open stream: Permission denied in [b]/home/woodsdom/public_html/CPC/admin/modules/Import/Import.php[/b] Unable to move '/tmp/phpWOE4OY' to '/home/woodsdom/public_html/CPC/core/cacheschedules_ttz_wip.csv' These two things make me believe that the folder it is trying to save to has permissions set to not allow a file to be saved. Quote
CPC900 Posted April 26, 2016 Author Report Posted April 26, 2016 Yeah, I will look again, but I set the permissions to allow and checked again. I will revisit it tonight. Could a change to the server do that?! I know my hosting company did make some changes lately to their services, like updating the PHP to the latest version etc. Maybe that had some influence on what is not working?!? Quote
Administrators simpilot Posted April 26, 2016 Administrators Report Posted April 26, 2016 When hosts change things nothing is out of the question..... Quote
CPC900 Posted May 7, 2016 Author Report Posted May 7, 2016 Yeah, after I made some inquiries they seemed to fix some things, I guess Errors are magically gone now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.