The Typo3 extension rs_userimp provides a backend tool to upload csv (and other) files, for example in order to transfer larger amounts of user data, adresses etc. and integrate it into a Typo3 website by mapping the table fields to existing table fields in the Typo3 data base.
The latest rs_userimp version (version 1.0.1), however, obviously has problems running under Typo3 4.7 with its specific requirements (especially, Typo3 4.7 needs PHP 5.3!)
Two bugs I was able to fix myself by replacing two deprecated functions (not working in PHP 5.3) with valid ones. This at least made the extension start, so that its backend screen appeared.
However, uploads do not work anyway: I can now chose a file to upload, but on upload nothing happens (the screen changes, showing again the empty "browse-for-a-file" form), and I never get to the expected further steps of the standard upload procedure, such as adjusting the field settings and then mapping fields.
I suppose this is due to more deprecated code in the extension's php files.
**The task is fixing the code** so that the extension works.
**A preliminary step** would be making sure that there is no other reason for the extension not working on my site, since there are reports that users often believe there is a bug in the extension, whereas they just had not the necessary user access rights. (Quotation from the manual: "The user must have access to a temporary upload folder, otherwise the file upload will fail. I know, this is trivial, but some users reported this as a bug =:o)". - I think, in my case, this is not the reason, since I am logged in as admin anyway, so I should have all possible rights, shouldn't I?
The worker will get admin access to the Typo3 site in question, as this is only a testing site anyway.
For the pieces of code I so far fixed myself see the details below.
Included as a file is the extension's user manual, as a first reference for you.
Here is the code I changed to make the extension work.
As an effect of my changes, the extensions backend screen appears indeed, and i can chose a file to upload. However, the actual uploading then gets stuck (as described above).
mod1/[url removed, login to view],
lines 327 und 329
outcommented: old code, followed by new working code
/* $this->doc->JScode .= $this->doc->getDynTabMenuJScode();*/
$this->doc->JScode .= $this->doc->getDynTabMenu();
/* $headerSection = $this->doc->getHeader("pages",$this->pageinfo,$this->pageinfo['_thePath'])."
".$LANG->sL("LLL:EXT:lang/[url removed, login to view]:[url removed, login to view]").": ".t3lib_div::fixed_lgd_pre($this->pageinfo['_thePath'],50); */
$headerSection = $this->doc->getHeader("pages",$this->pageinfo,$this->pageinfo['_thePath'])."
".$LANG->sL("LLL:EXT:lang/[url removed, login to view]:[url removed, login to view]").": ".t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'],50);