Howdy, Stranger!

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

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.3 fully supports PHP 7. Get it now!

Bugs in Importing Procedure (v 2.0.18.3)

edited March 2012 in Feedback

Two bugs I have had to personally fix to import phpbb2 data into vanilla forums.

First: class.upload.php
Fatal error when attempting to move uploaded file.

Patch:
Line 211: $Target = PATH_LOCAL_UPLOADS.'/'.$Parsed['Name'];
Modified: $Target = $Parsed['Name'];

Second: class.importmodel.php
Query Failure when updating count on run "9". (Discussion Comments)

Patch: Add to Line 466:

if(strtolower($Aggregate) == "sum"){
             $Result = "update :_$ParentTable
                 JOIN (
                    SELECT $ChildJoinColumn, SUM($ChildColumnName) 
                    AS ccsum 
                    FROM :_$ChildTable 
                    GROUP BY $ChildJoinColumn
                 ) AS t2 
                ON :_$ParentTable.$ParentJoinColumn = t2.$ChildJoinColumn
                SET
                    :_$ParentTable.$ParentJoinColumn=t2.ccsum
                ";
            return $Result;
          }

Hope this helps, didnt find your repo so couldnt issue bug.

Also, unable to post in developers forum.

Tagged:

Comments

Sign In or Register to comment.