1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Preg_split php error

Discussion in 'Web Design & Development' started by brethart, Oct 2, 2008.

Thread Status:
Not open for further replies.
  1. brethart

    brethart Thread Starter

    Aug 28, 2007
    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:

    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
              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.

    Attached Files:

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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/755438

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice