#3200 closed defect (worksforme)
Image macro failing after upgrade
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | image macro |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I just upgraded via svn to rev 3353. My Image macro calls are now failing with this error:
href() takes at least 2 arguments (1 given)
The code in my wiki page is just this:
[[Image(mail-in.jpg)]]
it was also failing in 3346 which I upgraded to on friday but worked from my version before that (which was probably a few weeks old). I restarted the web server after upgrade. All other software is at latest revs (except silvercity which is at one rev low since latest is busted).
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Keywords: | image macro added |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
… right, I was about to ask if you were using a custom macro, because the default one works for me :)
comment:3 by , 18 years ago
The trunk now include the Image macro as a built-in macro, so the external python file is not required anymore and may override the built-in macro if it exists in the project macro directory.
As specified in TracInstall#UpdatetheTracCode: In any case, if you're doing a major version upgrade (such as from 0.8 to 0.9), it is highly recommended that you first remove the existing Trac code
It seems you've upgraded from a old trunk version, or from a stable release (0.9.x) to a development version.
Fixed with help from IRC: remove all Image.py files in /usr/local/share/trac/wiki-macros and in each project's private wiki-macros directory.
Perhaps the install script (and upgrade script) should do this?