Edgewall Software

Ticket #3200 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

Image macro failing after upgrade

Reported by: vivek@… Owned by: jonas
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords: image macro
Cc:

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

Change History

Changed 2 years ago by anonymous

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?

Changed 2 years ago by cboos

  • keywords image macro added
  • status changed from new to closed
  • resolution set to worksforme

... right, I was about to ask if you were using a custom macro, because the default one works for me :)

Changed 2 years ago by eblot

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.

Add/Change #3200 (Image macro failing after upgrade)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.