ovdt
Mon 29th Sep '08, 7:48am
A Fatal Error taps the whole post importing process.
Importing from Invision Board v 2.2.2Installed add ons: blog, gallery, and arcade
Importing process crashes while importing Posts. Actually just one post causes the problem and of course i couldn't manage to determine which post.
Error message reads:
-------------------------
Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\www\vhosts\localhost\vb\impex\systems\ipb2\000. php(78) : regexp code on line 1
Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: $this->unconvert_size("14pt;line-height:100%\'>1. PHP</span></b>[/u]<br />==============================<br />====Dosya: getvar.php =============<br />==============================<br /><?php<br /><br />$connect = mysql_connect(\"localhost\", \"root\", \"\");<br />mysql_select_db(\"test\", $connect);<br />$result = mysql_query(\"SELECT ad, soyad, sehir FROM user\");<br />while($row=mysql_fetch_array($result)){<br /> $ad[]=$row[&#39;ad&#39;];<br /> $soyad[]=$row[&#39;soyad&#39;];<br />}<br /><br />$comma_separated1 = implode(\",\", $ad);<br />$comma_separated2 = implode(\",\", $soyad);<br />print \"ad=\".$comma_separated1.\"&soyad=\".$comma_separ ated2;<br /><br />?> in C:\www\vhosts\localhost\vb\impex\systems\ipb2\000. php on line 78
----------------------------
Apparently a problem with some regular expression emerges. I've tried putting try catch blog around the problematic 78th line but it did not work.
By the way I'm not trying to get a perfect importing process (that would be perfect though). I just want to circumvent the problem. If one can at least help me to determine which post causes the problem i can just delete that post. Because I'm doing this importing process in a limited time frame.
Thank you.