Import Does Not Work
Posted: 07 Mar 2022, 21:58
I am trying to import product records into Phoca cart (ver 4.0.ORC) and am running into problems. First of all is there any detailed documentation of the import/export functions as the online documentation is very sparse? If I can get at a more detailed discussion of the the requirements and specifications, that might allow me to solve this problem. A search of this forum did not help.
I have created upload files that are precisely structured like the export of current products (2 records). In one case the import file version is exactly the same as the export version except for a change in product price to allow me to determine that I can replace existing files; the existing product ID is part of that file; note that 'Attributes' are excluded from the export and import files. I've also created an identical file without product ID's, testing whether that would create two new records. In both cases, I am seemingly able to upload the file in question at which point it correctly identifies the number of records in the file but when I click on 'Import' nothing happens; there is no progress bar showing the process executing. Further when I go away from this screen and return to it, that file appears to still be there in a queue waiting to be processed. Clearing the caches generally doesn't help although on one try it did clear the pending import. Import files are formatted UTF-8. Is there any other way to clear such a pending file or does one simply upload a new file to do so?
For the record, Logging is enabled for all errors but no errors show up in the Phoca logs. Joomla debugging is enabled; I'm not seeing anything in the way of an obvious error there. When I look at the Chrome Console tools I do see the following output:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
DevTools failed to load source map: Could not load content for chrome-extension://pgjjikdiikihdfpoppgaidccahalehjh/webspeed.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
jquery.js?3.6.0:10109 GET https://talos4.net/j4-A/administrator/i ... 1&p=1&lp=1 500 (Internal Server Error)
send @ jquery.js?3.6.0:10109
ajax @ jquery.js?3.6.0:9690
phGetNextItem @ index.php?option=com_phocacart&view=phocacartimports:199
phImportAllItems @ index.php?option=com_phocacart&view=phocacartimports:220
dispatch @ jquery.js?3.6.0:5430
elemData.handle @ jquery.js?3.6.0:5234
I have no idea what any of that means. For the record, when I look at my server's Apache Error logs I get a bunch of errors like this:
[cgi:error] [pid 4558] [client 98.237.88.222:42096] AH01215: php7.4.cgi: line 2: ulimit: max user processes: cannot modify limit: Operation not permitted: /home/talos4n/public_html/cgi-bin/php7.4.cgi, referer: https://talos4.net/j4-A/administrator/i ... artimports
While I could be wrong I don't think my ulimit parameters are wrong on this server and is probably a result of some other underlying problem. Could this be a permission issue in the folder where the file is uploaded. It would be nice to know where that folder is!
Can anyone help me on this. Just more detailed documentation would be a good place to start.
I have created upload files that are precisely structured like the export of current products (2 records). In one case the import file version is exactly the same as the export version except for a change in product price to allow me to determine that I can replace existing files; the existing product ID is part of that file; note that 'Attributes' are excluded from the export and import files. I've also created an identical file without product ID's, testing whether that would create two new records. In both cases, I am seemingly able to upload the file in question at which point it correctly identifies the number of records in the file but when I click on 'Import' nothing happens; there is no progress bar showing the process executing. Further when I go away from this screen and return to it, that file appears to still be there in a queue waiting to be processed. Clearing the caches generally doesn't help although on one try it did clear the pending import. Import files are formatted UTF-8. Is there any other way to clear such a pending file or does one simply upload a new file to do so?
For the record, Logging is enabled for all errors but no errors show up in the Phoca logs. Joomla debugging is enabled; I'm not seeing anything in the way of an obvious error there. When I look at the Chrome Console tools I do see the following output:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
DevTools failed to load source map: Could not load content for chrome-extension://pgjjikdiikihdfpoppgaidccahalehjh/webspeed.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
jquery.js?3.6.0:10109 GET https://talos4.net/j4-A/administrator/i ... 1&p=1&lp=1 500 (Internal Server Error)
send @ jquery.js?3.6.0:10109
ajax @ jquery.js?3.6.0:9690
phGetNextItem @ index.php?option=com_phocacart&view=phocacartimports:199
phImportAllItems @ index.php?option=com_phocacart&view=phocacartimports:220
dispatch @ jquery.js?3.6.0:5430
elemData.handle @ jquery.js?3.6.0:5234
I have no idea what any of that means. For the record, when I look at my server's Apache Error logs I get a bunch of errors like this:
[cgi:error] [pid 4558] [client 98.237.88.222:42096] AH01215: php7.4.cgi: line 2: ulimit: max user processes: cannot modify limit: Operation not permitted: /home/talos4n/public_html/cgi-bin/php7.4.cgi, referer: https://talos4.net/j4-A/administrator/i ... artimports
While I could be wrong I don't think my ulimit parameters are wrong on this server and is probably a result of some other underlying problem. Could this be a permission issue in the folder where the file is uploaded. It would be nice to know where that folder is!
Can anyone help me on this. Just more detailed documentation would be a good place to start.