Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
fatal error with Cleanup 1.0
Hello,
I just installed vanilla 1 pre release from the svn repository (revision 445 I think), on a linux server (centos4) with apache 2.0.52, php 5.0.4 and mysql 4.1.18.
When I try to delete a user (clean-up user) I get this error message:
Notice: Undefined index: Clipping in .../htdocs/library/Framework/Framework.Functions.php on line 424
Notice: Undefined index: Clipping in .../htdocs/library/Framework/Framework.Class.SqlBuilder.php on line 242
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occurred while attempting to remove user clippings.
Affected Elements
CleanupForm.Constructor();
The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in (3)' at line 1
I just installed vanilla 1 pre release from the svn repository (revision 445 I think), on a linux server (centos4) with apache 2.0.52, php 5.0.4 and mysql 4.1.18.
When I try to delete a user (clean-up user) I get this error message:
Notice: Undefined index: Clipping in .../htdocs/library/Framework/Framework.Functions.php on line 424
Notice: Undefined index: Clipping in .../htdocs/library/Framework/Framework.Class.SqlBuilder.php on line 242
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occurred while attempting to remove user clippings.
Affected Elements
CleanupForm.Constructor();
The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in (3)' at line 1
0
This discussion has been closed.
Comments
If it is infact alright with v1, I'd assume its a mysql version issue, but i'm pretty sure v4.x is the standard mysql ver at the moment...?
// Wipe out clippings
// $s->Clear();
// $s->SetMainTable('Clipping', 'c');
// $s->AddWhere('c', 'UserID', '', '('.implode(',',$InactiveUsers).')', 'in', 'and', '', 0);
// $this->Context->Database->Delete($s, $this->Name, 'Constructor', 'An error occurred while attempting to remove user clippings.');
Now, when I try to delete a user (clean-up user) I get this error message:
"Fatal error: Call to undefined method SqlBuilder::AddUpdateWhere() in .../htdocs/extensions/Cleanup/default.php on line 106"
For info, the line 106 is the one between the strong tags:
// Update any styles associated with this user to be system styles
$s->Clear();
$s->SetMainTable('Style', 's');
$s->AddFieldNameValue('AuthUserID', '0');
$s->AddUpdateWhere('s', 'AuthUserID', '', '('.implode(',',$InactiveUsers).')', 'in', 'and', '', 0);
$this->Context->Database->Update($s, $this->Name, 'Constructor', 'An error occurred while attempting to remove user style relations.');
$s->AddUpdateWhere('s', 'AuthUserID', '', '('.implode(',',$InactiveUsers).')', 'in', 'and', '', 0);
by
$s->AddWhere('s', 'AuthUserID', '', '('.implode(',',$InactiveUsers).')', 'in', 'and', '', 0);
And it works I think
When I tried to create a back-up with cleanup, I got that message:
Warning: readfile(.../htdocs/images/2006-06-11-20-35-vanillaHFME.sql) [function.readfile]: failed to open stream: No such file or directory in .../htdocs/library/Framework/Framework.Functions.php on line 565
Warning: unlink(.../htdocs/images/2006-06-11-20-35-vanillaHFME.sql) [function.unlink]: No such file or directory in .../htdocs/library/Framework/Framework.Functions.php on line 566
I just had to create images/ with the right permissions