Hi I am getting the following error on one of my pages, which is a joomla component to allow users to import all of there contacts from Hotmail/Gmail/Yahoo/Aol etc. The module loads fine, asks you for your email address and password, then you click a submit button. It then loads the following error message repeatedly:
Below is the snippet of code from import_processor.php that seems to have the problem. I will attach the file below in a zip file.
Line 689 - 699
Any help solving this would be much appeciated.
Code:
Warning: preg_split() [function.preg-split]: Compilation failed: nothing to repeat at offset 0 in /home/hotleg/public_html/components/com_comprofiler/plugin/user/plug_parainvite/importer/import_processor.php on line 692
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/hotleg/public_html/components/com_comprofiler/plugin/user/plug_parainvite/importer/import_processor.php on line 694
Line 689 - 699
Code:
do
{
list ($headers, $html) = explode ("\n", $html, 2);
$response_header_lines = preg_split ("/?/", $headers);
$this->lastStatusCode = 200;
$http_response_line = array_shift ($response_header_lines);
if (preg_match ('@^HTTP/[0-9]\\.[0-9] ([0-9]{3})@', $http_response_line, $matches))
{
$this->lastStatusCode = intval ($matches[1]);
}
}while (!($this->lastStatusCode == 100));
Attachments
-
11.3 KB Views: 9