Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManTweet install fails at step 5 #6

Closed
dregad opened this issue Jan 18, 2016 · 1 comment
Closed

ManTweet install fails at step 5 #6

dregad opened this issue Jan 18, 2016 · 1 comment

Comments

@dregad
Copy link
Member

dregad commented Jan 18, 2016

APPLICATION ERROR #2503
Upgrading the plugin schema failed in block #5.

This is on a fresh MantisBT install with latest master as of this writing (mantisbt/mantisbt@a21eb8c)

@dregad dregad closed this as completed in 0bb05ee Jan 18, 2016
@dregad
Copy link
Member Author

dregad commented Jan 18, 2016

I wonder if this upgrade step has ever worked...

Upgrading the plugin with $g_display_errors[E_ALL] = 'inline'; shows the following error
SYSTEM WARNING: 'call_user_func() expects parameter 1 to be a valid callback, function 'install_install_mantweet_purge_cached_entries' not found or invalid function name' in '/home/dregad/dev/mantisbt/core/plugin_api.php' line 763

UpdateFunction argument (the function name) must not include the install_ prefix, as it is added by the API

Also, successful return value for install steps should be 2 (that's how ADOdb works), even though using true work since we're using a loose comparison (PHP casts the expression to boolean).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant