Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3200 closed defect (worksforme)

Image macro failing after upgrade

Reported by: vivek@… 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 anonymous, 18 years ago

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?

comment:2 by Christian Boos, 18 years ago

Keywords: image macro added
Resolution: worksforme
Status: newclosed

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

comment:3 by Emmanuel Blot, 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.