Deleting Project did not show to work

Project:ProjectPier
Version:0.8.6-stable
Component:User interface
Category:bug report
Priority:normal
Assigned:phpfreak
Status:closed - fixed
Description

c.f. screenshot

AttachmentSize
delete project.JPG28.74 KB
#1
Assigned to:Visitor» phpfreak
Status:new» patch - code needs review

Confirmed and fixed. Code was missing.

Unzip attached file and put file in /application/models/projects

AttachmentSize
Project.class_.php_.zip 7.7 KB
#2

applied the patch above
still can't delete a project
PP outputs a message:
Failed to delete selected project

#3

Apparently you get a different error than me. Okay, more analysis needed.

Open file application/controllers/ProjectsController.class.php
Search 'funcion delete()'
Go down and scan for this:

        } catch(Exception $e) {
          DB::rollback();

Replace with this

        } catch(Exception $e) {
          DB::rollback();
die($e);

Now, delete a project. The screen will turn blank with a lot of text on it. Paste the text here. Then remove the die($e);

#4

i re-applied the patch (double checked this time)
it turns out to work fine for me
i'm sorry for disturbance

#5
Status:patch - code needs review» closed - fixed

no worries (kein thema).
i am glad you tested it again.
we do not need to look further now :-)

#7
Version:0.8.8-alpha» 0.8.6-stable

Hi,

I have applied the patch for deleting the project but I'm getting error msg like this.
==
Exception in AutoLoader: exception 'Exception' with message 'Could not find class file for "PAGEATTACHMENTS"' in C:\xampp\htdocs\086\environment\classes\AutoLoader.class.php:105 Stack trace: #0 C:\xampp\htdocs\086\environment\classes\AutoLoader.class.php(111): AutoLoader->loadClass('PAGEATTACHMENTS') #1 C:\xampp\htdocs\086\application\functions.php(32): AutoLoader->loadClass('PAGEATTACHMENTS') #2 C:\xampp\htdocs\086\application\models\projects\Project.class.php(408): __autoload('PageAttachments') #3 C:\xampp\htdocs\086\application\models\projects\Project.class.php(1953): Project->getAllPageAttachments() #4 C:\xampp\htdocs\086\application\models\projects\Project.class.php(1933): Project->clearPageAttachments() #5 C:\xampp\htdocs\086\application\controllers\ProjectController.class.php(919): Project->delete() #6 C:\xampp\htdocs\086\environment\classes\controller\Controller.class.php(71): ProjectController->delete() #7 C:\xampp\htdocs\086\environment\classes\controller\PageController.class.php(71): Controller->execute('delete') #8 C:\xampp\htdocs\086\environment\classes\Env.class.php(124): PageController->execute('delete') #9 C:\xampp\htdocs\086\init.php(179): Env::executeAction('project', 'delete') #10 C:\xampp\htdocs\086\index.php(8): require('C:\xampp\htdocs...') #11 {main}
==
Patch is not working for me :(

#8
Version:0.8.6-stable» 0.8.8-alpha

The patch is only possible for 0.8.8. If you are running 0.8.8 then delete cache/autoloader.php and try again.

#9
Version:0.8.8-alpha» 0.8.6-stable

Is there any patch for 0.86 ? I am facing the problem in 0.86 only.

#10

Me too. Any advice or assists on this problem? I've been challenging mine for quite a while...no dice. Any tips are appreciated!
Frankie,