Preg_split php error

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

brethart

Thread Starter
Joined
Aug 28, 2007
Messages
6
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:

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
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
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));
Any help solving this would be much appeciated.
 

Attachments

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top