Jump to content

Import Schedules


CPC900

Recommended Posts

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.

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

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?!?

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...