Looks like you are missing an opening / on line 2 ofjquerymenu.module which is causing the install to fail.

I correctly commented this out and manually deleted the module and am now getting the following error:

DatabaseSchemaObjectExistsException: Table <em class="placeholder">jquerymenus</em> already exists. in DatabaseSchema->createTable() (line 652 of /var/www/html/mytheme/includes/database/schema.inc).

Weird as I cleared cache down and had already manually deleted the jquerymenus table

CommentFileSizeAuthor
#12 jquerymenu-install-fix.patch4.57 KBlikewhoa

Comments

pat redmond’s picture

Hmm, that is strange. I can't see where you mean. The opening line is

/**

for both jquerymenu.module and jquerymenu.install, so adding an extra slash shouldn't be required...

Can you paste a few lines of code so I can get an idea of what you are looking at? And check whether it is the module file or the install file.
Can you also let me know which version of D7 you are using?

dp_warren’s picture

Sure - the opening lines for jquerymenu.module for me are:

<?php
**
 * @file
 * The JQuerymenu module parses hierarchical link arrays and renders them as click and expand menu blocks.
 */

/**
 * Implementation of hook_init().
 */

I've downloaded the module again this morning to double check but it definitely what I'm seeing.
Drupal version 7.12

pat redmond’s picture

Assigned: Unassigned » pat redmond

OK, that sucks... How did I manage to upload the wrong version? So, the first D7 release isn't actually the D7 release. I will fix it in the morning - off to paint the bathroom now.

brst t’s picture

And jquerymenu.info Line 4 is showing 6.x instead of 7.x

name = Jquery Menu
description = Enables expandable jquery menus.
package = Advanced Navigation Pack
core = 6.x

Package should reuse a pattern like "User interface" or "Other" so people can readily find it in the module listing, too.

name = Jquery Menu
description = Enables expandable jquery menus.
package = User interface
core = 7.x
pat redmond’s picture

Status: Active » Closed (fixed)

OK, thanks. I've included that in the code for the next release.
I have changed the package to 'User Interface', although I wonder if long-term jquerymenu users will be used to it being in 'Advanced Navigation Pack'? Despite that, I think 'User Interface' is probably more correct, and so I have included that.

brst t’s picture

Version: 7.x-1.0 » 7.x-2.0-alpha2

Just downloaded 7.x-2.0-alpha2 and that info file still has the 'doesn't work for 7' 6.x

name = Jquery Menu
description = Enables expandable jquery menus.
package = Advanced Navigation Pack
core = 6.x
; Information added by drupal.org packaging script on 2012-03-15
version = "7.x-2.0-alpha2"
core = "7.x"
project = "jquerymenu"
datestamp = "1331769952"

Nothing's changed in this regard.

brst t’s picture

Status: Closed (fixed) » Active
pat redmond’s picture

Status: Active » Closed (fixed)

Ok, this too has been updated in 2.0-alpha3. Again, an issue with whatever I am doing wrong with git.

giupenni’s picture

Status: Closed (fixed) » Active

Same problem in 7.x-2.0-alpha6.

When I enable the module I have this error:
DatabaseSchemaObjectExistsException: La tabella <em class="placeholder">jquerymenus</em> esiste già. in DatabaseSchema->createTable() (linea 652 di /media/dude/www/mysite/drupal/includes/database/schema.inc).

pat redmond’s picture

Status: Active » Postponed (maintainer needs more info)

Can you uninstall the module entirely, then re-install 7.x-2.0-alpha6? Let me know if that fixes the problem.

R2-D8’s picture

I was having the same problem as mentioned in #9.

Problem and solution are simple:

The jquerymenu.install-file is wrong.
In drupal-7.x both, the install- and uninstall-function, do not have to call for a schema installation/uninstallation anymore.
Instead one could provide status-messages.

Fixed jquerymenu.install:

<?php
function jquerymenu_install(){
}
function jquerymenu_uninstall(){
  drupal_set_message(t('Jquery Menu has been uninstalled.'));   
}

function jquerymenu_schema() {
  $schema['jquerymenus'] = array(
      'description' => t('Stores information about which menus are activated'),
      'fields' => array(
        'mid' => array(
          'type' => 'serial',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'menu_name' => array(
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
        ),
      ),
      'primary key' => array('mid'),  
  );
  return $schema;
}
function jquerymenu_update_7001() {
/**
 * This is a one time cleanup to remove blocks and menus that have gotten out of sync.
 * This update will reset blocks that were created directly by jquery menu
 * you will need to visit the blocks page after running this to re-enable those blocks.
 */
  $result = db_query("SELECT mid, menu_name FROM {jquerymenus}");
  $enabledmenus = array();
  while ($enabled = $result->fetchAssoc()) {
    $title ='';
    $title = db_query("SELECT title FROM {menu_custom} WHERE menu_name = ':menu_name'", array(":menu_name" => $enabled['menu_name']))->fetchField();
    if (empty($title)) {
      db_query("DELETE FROM {jquerymenus} WHERE menu_name = ':menu_name'", array(":menu_name" => $enabled['menu_name']));
      db_query("DELETE FROM {block} WHERE module = 'jquerymenu'");
    }
  }
}

likewhoa’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new4.57 KB

attached patched based on #11, also apply #1515292: Parse error: syntax error, unexpected '*' in jquerymenu.module so you're able to enable the module properly.

likewhoa’s picture

Version: 7.x-2.0-alpha2 » 7.x-2.x-dev
pat redmond’s picture

Status: Needs review » Closed (fixed)

Thanks. That is definitely fixed in the new version.

dadaisme’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev

Hi!

Same error appears whit the 7.x-3.x-dev : DatabaseSchemaObjectExistsException: Table jquerymenus already exists.

Thx.

[edit: I tried 7.x-2 and I obtained the same error.]

pat redmond’s picture

OK, I've added it again. Must have been lost in the problems I was having with git.
Let me know if it is still causing you issues.