Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 10:07:20 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155529 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Droplets error: Unknown column 'admin_view' in 'field list'  (Read 708 times)
macsmet

Offline Offline

Posts: 234


« on: November 19, 2009, 06:24:11 PM »

Hi there all,

I had some trouble with Droplets (WB 2.Cool. Tried to make one, couldn't save and all of a sudden didn't have access to Droplets anymore. I de-installed the Droplets module. Downloaded version 1.02 from AMASP and reinstalled it.
Now I get the error described in the title.
I know there is a upgrade script but how do I call it? You can't do this from your browser.
Do I have to use PHPMyAdmin? And what do I do then?

Any help is appreciated!

Greetings,

MacSmet
« Last Edit: November 19, 2009, 06:26:53 PM by macsmet » Logged
macsmet

Offline Offline

Posts: 234


« Reply #1 on: November 20, 2009, 05:42:32 PM »

Anyone? please, please, please!!!
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #2 on: November 20, 2009, 06:28:52 PM »

Make a code section,
in it try:
Code:
$table = TABLE_PREFIX .'mod_droplets';
$info = $database->query("SELECT * from `$table` limit 0,1" );
$fields = $info->fetchRow();
if (!array_key_exists("admin_edit", $fields)) {
    /**
     *    Call from the upgrade-script
     */
   
    if (function_exists('db_add_field')) {
        db_add_field("admin_edit", 'mod_droplets', "INT NOT NULL default '0'");
        db_add_field("admin_view", 'mod_droplets', "INT NOT NULL default '0'");
        db_add_field("show_wysiwyg", 'mod_droplets', "INT NOT NULL default '0'");
    } else {
        /**
         * Not call by the upgrade-script
         */
        $database->query("ALTER TABLE `$table` (
            `admin_edit` INT NOT NULL default '0',
            `admin_view` INT NOT NULL default '0',
            `show_wysiwyg` INT NOT NULL default '0'
            )");
    }
}

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
macsmet

Offline Offline

Posts: 234


« Reply #3 on: November 20, 2009, 06:41:10 PM »

@ John:

Thanks for your suggestion, but no luck!
Any other idea's?

greetings,

MacSmet
Logged
aldus

Offline Offline

Posts: 1238


« Reply #4 on: November 21, 2009, 03:02:42 PM »

Quote
I know there is a upgrade script but how do I call it? You can't do this from your browser.
You can use the "advanced" options in "add-ons" -> "modules" ... and select "droplets" and
use "install" or "upgrade" ...

Regards
Aldus
Logged
macsmet

Offline Offline

Posts: 234


« Reply #5 on: November 21, 2009, 03:13:37 PM »

@Aldus: Thanks, I already tried the 'upgrade' in this way but that didn't work.
Now first I did the 'instal'l and then the 'upgrade' (to be sure) and now everything is fine again.
Thanks a lot!!

greetings,

MacSmet

Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!