First of all - thank you for releasing the new version for D7!
I had a first go at this today with a clean D7 installation on localhost. I have imported all phpbb tables to the D7 database and have copied "images/avatars/upload/" and "files" directories from the phpbb installation to a "phpbb" folder within "sites/default" of the D7 directory. Then I set this folder accordingly in the module's settings. I have set the 'Domain of your forum' field to "localhost/d7"
The first thing I have tried to migrate was the first on the list: the avatars. And here I got the first error message, which goes something like this (.htaccess in phpbb folders removed):
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /d7/batch?id=26&op=do StatusText: OK ResponseText: Could not copy file 0Could not copy file 0Could not copy file 0Could not copy file 0Could not copy file 0Could not copy file 0Could not copy file 0Could not copy file
this goes on for a few hundred lines with some of those in between:
0Could not copy file 0{"status":true,"percentage":"100","message":"Could not copy file http:\/\/localhost\/d7\/images\/avatars\/upload\/1b47ace7ca674771922449cdcf85fd71_.jpg\u003cbr \/\u003eCould not copy file 0\u003cbr \/\u003eCould not copy file 0\u003cbr \/\u003eCould not copy file 0\u003cbr \/\u003eCould not copy file http:\/\/localhost\/d7\/images\/avatars\/upload\/1b47ace7ca674771922449cdcf85fd71_.gif\u003cbr \/\u003e
I have played around with different folders but got the same result in the end.
Not sure if it is worth mentioning: But i get the following error message on each migrate page twice:
Deprecated function: Call-time pass-by-reference has been deprecated in _registry_check_code() (line 2982 of E:\xampp\htdocs\d7\includes\bootstrap.inc).
I hope, I have not made a fool of myself....
Comments
Comment #1
darksnowWhen I got this in testing it was down to file permissions.
Can you see what url the system was trying to use to get the file, then browser to that URL and see if the browser can see the file?
Comment #2
Golem07 commentedThank you for your reply darksnow.
Sorry for the late reaction. Couldn't find the time so far for further testing.
Following your advice I have noticed that those files that are causing the error message actually do not exist at all in the avatars directory of the phpbb install. The file names in the error message are mostly correct but are always missing 3-4 characters at the end (_xxxx missing at the end. Example: The file 1b47ace7ca674771922449cdcf85fd71_1510.jpg is being shown as 1b47ace7ca674771922449cdcf85fd71.jpg in the error message). I have no idea why this is the case since the avatars show correctly in the phpbb test installaton (maybe because the phpbb install already is a migration form DragonflyCMS? - interestingly though those files do not exits there either...).
Often the paths that the module is looking for do not make sense at all to me like this example:
"Could not copy file http:\/\/localhost\/phpbb\/\/1b47ace7ca674771922449cdcf85fd71_.jpg\u003cbr \/\u003e"
I have no clue where the additional u003cbr and u003e folders should be coming from.
I would not mind if the avatars were not migrated at all (not that important to me) but I cannot continue with the import of the users since this seems to depend on the import of the avatars first. I have tried to de-activate the usage of avatars on the phpbb installation bit this doesn't seem to affect the error.
Comment #3
Golem07 commentedUpdate:
I have just now seen the very similar issue (#1461982: Avatar import "Could not copy file")
However, I am not sure my issue has got something to do with permissions since I am testing on a local install and have deleted every single .htaccess file in sight...
Comment #4
JeremyFrench commentedI think both the issues in here are now solved.