Drupal

  • blog
  • bio
Home › Blogs › Jeff Beard-Shouse's blog

DPDesktop plugin for Web2Project 2.4 fix

Jeff Beard-Shouse — Thu, 01/12/2012 - 18:19

The DPDesktop 0.72 plugin for Web2Project does not work with Web2Project version 2.4 (maybe 2.3 as well, but not sure).  
There are two ways to fix this.  Manually edit the file or use the patch I supply (see below)
 
Manually edit the file
 
The issue is the newer versions of Web2Project use different objects for database and date than previous versions.  Namely the "DBQuery" object is now "w2p_Database_Query" and "CDate" is now "w2p_Utilities_Date".  
The file that needs to be modified is dpdesktop-0.72/service/classes/class.dao_web2project.php
 
Change lines like:
 $q = new DBQuery();
 to
 $q = new w2p_Database_Query();
And lines like:
 $date = new CDate();
 to
 $date = new w2p_Utilities_Date();
 
 
Use the patch file
 
 Here is a patch file.
1. download and unzip the file 
2. copy patch file to your DPDesktop plugin dir next to the file to patch (i.e. dpdesktop-0.72/service/classes/)
3. cd to that dir
4. type command:
        patch < class.dao_web2project.php.patch
 The < should be the less than character.  For some reason my blog is output escaping the character even if I use entity characters

  • Jeff Beard-Shouse's blog
  • Login to post comments

User login

  • Request new password
  • blog
  • bio