Author Topic: Data:Export: error AbanteCart core v.1.2.10 file_get_contents(): Filename  (Read 10370 times)

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Greetings!
Fresh install of v.1.2.10
Learning how everything works before I build a shop with it :)
(I've played with Zen Cart, Open Cart, Presta, so I kinda know my way around.)
I'm finding AbanteCart Cart to be very user friendly. I appreciate not having to mess with code or core files for simple changes

My issue:

I am assuming, perhaps wrongly, that when I do a data export, there should be a pop-up that lets me choose a folder on my computer to place the downloaded files.
I can access the file, but only by retrieving via FTP.
Within the system/data folder there is a tar file: export_02052017_113239.tar that contains a file: export_02052017_113239, but no extension to the file such as csv.. etc
And a file folder: export_02052017_113239 that DOES contain the csv file

These are the errors I found in the error.txt file:
2017-05-02 11:34:00 - warning: 
AbanteCart core v.1.2.10 file_get_contents(): Filename cannot be empty in <b>/xxx/xxx/xxx/core/lib/targz.php</b> on line <b>168</b>
2017-05-02 11:34:00

App Error:  AbanteCart core v.1.2.10 Error:
cannot to pack /xxx/xxx/xxx/xxx/system/data/export_02052017_113239.tar.gz in /xxx/xxx/xxx/xxx/core/lib/data.php on line 1568

2017-05-02 11:34:00 - warning:  AbanteCart core v.1.2.10 file_get_contents(/xxx/xxx/xxx/system/data/export_02052017_113239.tar.gz): failed to open stream:
No such file or directory in <b>/hxxx/xxx/xxx/xxx/core/lib/data.php</b> on line <b>269</b>

Error: cannot to pack /xxx/xxx/xxx/xxx/system/data/export_02052017_120257.tar.gz

Any suggestions? I am comfortable editing files as long as I am told what to look for and what to replace/correct.

Thanks!
Kat

AbanteCart v.1.2.10

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
can you please check permissions for directory /public_html/admin/system and all it's subdirectories? it must be writable for php
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
abolabo, thanks for the reply!

I haven't changed any of the folder/file permissions since I installed.

System and Data folders have 755 permissions.

Temp and backup folders have 777 permissions, as did the tar files within data folder before I downloaded and deleted them.

Those 777 permissions have me a bit concerned. Are they supposed to be that wide open and available? Seems like a security issue.

Thank again for your help,
Kat
AbanteCart v.1.2.10

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Seems like a security issue.

what about security_mod for apache? Do you have it installed on your host?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
I'm Running PHP 7.0 CGI

output_buffering = 4096;
magic_quotes_gpc = Off;
register_globals = Off;
default_charset   = UTF-8;
memory_limit = 128M;
max_execution_time = 18000;
upload_max_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
apc.enabled = 0;
AbanteCart v.1.2.10

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Seems like a security issue.

what about security_mod for apache? Do you have it installed on your host?

i meant check for it on system->settings->system -> button phpinfo() at the heading. Check is security_mod presents there
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
No, security_mod is not present
AbanteCart v.1.2.10

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
I also checked the error log via my server and there are no entries at all.
AbanteCart v.1.2.10

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
please check is Phar ( PHP Archive) support enabled in  phpinfo output
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Is this what you wanted: enable-phar=shared'
AbanteCart v.1.2.10

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
i think you have disabled phar of suhosin disabling it..
please read this http://stackoverflow.com/questions/22047487/how-do-i-install-enable-the-php-phar-extension?answertab=votes#tab-top for details
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
I had an issue with suhosin on another cart setup in the past.
I'll go take a peek in just a bit. Life duties come first :)

Thank you for helping me through this!
Kat
AbanteCart v.1.2.10

Offline Bewitching

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
I added
suhosin.executor.include.whitelist = phar
to my phprc file in the .php/7.0 folder

Same error:
Number of repetitions: 7
Error: cannot to pack /home/dh_aud9bg/xxx.com/MyStoreFolder/admin/system/data/export_05052017_100920.tar.gz
AbanteCart v.1.2.10

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
can you give me ftp-access via PM?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod