Hi,
I just changed my module from a sandbox project to a full full project. https://drupal.org/project/opigno-video-app
I cannot access the Version Control page.

https://drupal.org/project/opigno%2520video%2520app/git-instructions
"Error The website encountered an unexpected error. Please try again later."

Comments

marvil07’s picture

@tvn(or other person with that access): Can you please try to reproduce this on production and copy paste here the associated watchdog messages?

tvn’s picture

Sure:

Recoverable fatal error: Argument 2 passed to drupal_goto() must be an array, string given in drupal_goto() (line 686 of /var/www/drupal.org/htdocs/includes/common.inc).

In fact, it's the same message as here #2155647: Error instead of 404 on nonexistent project page

tvn’s picture

marvil07’s picture

@tvn: Not sure what is happening.

After some debug_backtrace(), I ended up with this trace:

Array
(
    [0] => Array
        (   
            [function] => drupal_goto
            [args] => Array
                (   
                    [0] => download
                    [1] => opigno-video-app
                    [2] => git-instructions
                )

        )

    [1] => Array
        (   
            [file] => /var/www/git-dev.drupal.org/htdocs/includes/menu.inc
            [line] => 517
            [function] => call_user_func_array
            [args] => Array
                (   
                    [0] => drupal_goto
                    [1] => Array
                        (   
                            [0] => download
                            [1] => opigno-video-app
                            [2] => git-instructions
                        )

                )

        )

    [2] => Array
        (   
            [file] => /var/www/git-dev.drupal.org/htdocs/index.php
            [line] => 21
            [function] => menu_execute_active_handler
            [args] => Array
                (
                )

        )

)

I do not really know why /project/opigno-video-app/git-instructions path is being called with download as first parameter.

Looking around I see hook_menu_alter() on drupalorg_project(), maybe it is related with it? not sure really, but seems unrelated with versioncontrol module.

drumm’s picture

Assigned: Unassigned » drumm
drumm’s picture

Title: Version Control module Error » Project redirect error
Project: Drupal.org infrastructure » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: Drupal.org module » Drupal 7 upgrade
Category: Support request » Bug report
Status: Active » Fixed
Issue tags: -Version Control

Committed http://drupalcode.org/project/drupalorg.git/commit/9475b00 for this and deploying.

Since the project short name isn't found, the menu system falls back to the project page, and passes along the remaining path elements, which drupal_goto can't handle.

drumm’s picture

Actually, we don't even want any of these customizations, a basic redirect will do.

http://drupalcode.org/project/drupalorg.git/commit/3960db2 removes our altering of the menu item, which is removed by http://drupalcode.org/project/project_solr.git/commit/646de4c.

Now actually deploying.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 3960db2 on 7.x-3.x, 7.x-3.x-dev by drumm:
    [#2157343] Remove root project page.
    
  • Commit 9475b00 on 7.x-3.x, 7.x-3.x-dev by drumm:
    [#2157343] Do not use drupal_goto as a menu callback since it can not...