I am using E-Publish on two sites. On the first, it works perfectly. On the second, whenever I try to add a topic, I get a form for editing the miscellaneous topic instead. I cannot find any reason for a difference between the two sites. I followed the directions for setting up the E-Publish module on both of them. Does anyone have any idea where this bug might have originated?

CommentFileSizeAuthor
#1 epublish.module-add_topic.patch316 bytesdarren oh

Comments

darren oh’s picture

Status: Active » Needs review
StatusFileSize
new316 bytes

The problem was caused by a single line in the function epublish_form_topic. The only reason I can find that it would work on one site and not the other is that one uses PHP4 and the other uses PHP5. This is the line that causes trouble on the site using PHP5:

	$edit = (object) $edit;

Once its removed, I can add new topics to both sites and still edit existing topics. I'm attaching a patch for review.

kuldip zala’s picture

Status: Needs review » Fixed

Now,

This bug resolved in current epublish module of 4.x .

You can download and enjoy.

Kuldip

techrobo’s picture

Status: Fixed » Closed (fixed)

Never got this issue.
Latest CVS commit is perfect.