Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Import update error
  • Vote Up0Vote Down adavila78adavila78
    Posts: 46Sendy user

    Hi I tried to import my csv lists but I get the following error:

    Parse error: syntax error, unexpected T_VARIABLE in /home/replifie/public_html/sendy/includes/subscribers/import-update.php on line 1

    is there something I need to fix??

  • 6 Comments
  • Vote Up0Vote Down adavila78adavila78
    Posts: 46Sendy user

    Well I managed to fix it, I opened the import-update.php and it seemed all the code was messed in a single line thus all the comments were mixed with the code, as soon as I created the appropiate line breaks by hitting enter after each semicolon, dreamweaver told me there were no more errors, I ran the code and was able to run the import routine, but I ended up at a blank page, nevertheless, all the emails got imported properly.

  • Vote Up0Vote Down adavila78adavila78
    Posts: 46Sendy user

    After many tries, still no luck... when importing large lists like one I had for about 21,300 subscribers, it crashes, I commented the out the last line that says:

    //header("Location: ".get_app_info('path').'/subscribers?i='.$app.'&l='.$listID); ?>

    and I managed to get it importing emails but sometimes it manages to import 16,430 then crashing and on the second run it imported 12,120 and crashed... I guess I need a version of this file, currently as it is (uploaded without any modification) it simply does not work...

  • Vote Up0Vote Down adavila78adavila78
    Posts: 46Sendy user

    Hmm just found this: http://sendy.co/discussion/480/import-csv-problems/p1 let me check on that...

  • Vote Up0Vote Down adavila78adavila78
    Posts: 46Sendy user

    Well I just did a new installation uploading everything as binary per that post suggestion and it works exactly the same and I get a timeout error when sendy starts processing the 21k contact file that just finished uploading, seems the script gets tired of waiting and sends an error to the browser.

    If I get back manually to sendy in the navigation URL it loads perfectly, what i discovered is that the reported amount of subscribers in my 21K list keeps growing by itsel at each refresh until it reaches the total of uploaded emails.(21k)

    I increased the php.ini timeouts but no luck, it still timesout and says website unreachable, however if the file managed to upload completely, your contacts will be added to the list, no doubt, its just a little bit puzzling that you only get a blank screen or a host unreachable error.

  • Vote Up0Vote Down adavila78adavila78
    Posts: 46Sendy user

    Just so you know, if the list is small (less than 1k) it works perfectly. =)

  • Vote Up0Vote Down BenBen
    Posts: 3,494Sendy support

    Hi @adavila78,

    If importing a large list gives you problem, split it into smaller chunks and upload them.

    Though, I'll be looking to further improve this so you don't have to do that.

    Thanks. :)

    Ben

This discussion has been closed.
All Discussions