OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Bad link--Need help asap

General inquiries about the PKP.

Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, John

Forum rules
Feel free to post general inquiries about the PKP Here. We'll also post notes of interest from time to time. You may also want to check out the PKP blog.

Bad link--Need help asap

Postby acalvello » Wed Mar 31, 2010 10:54 am

When new announcements are posted on our site, a email goes out to all registered users, notifying them of the announcement and giving them a link to the announcement page. Unfortunately, the embedded link is incorrect and fails to open. It reads:
http://thejei.com/index.php/JEI/announc ... nouncement

Where it should read: http://thejei.com/index.php/JEI/announcement

Please help as we are scheduled to publish our first issue this afternoon.
Thanks,
Angelo
acalvello
 
Posts: 4
Joined: Sat Feb 13, 2010 10:26 am

Re: Bad link--Need help asap

Postby jmacgreg » Tue Apr 06, 2010 9:21 pm

Hi Angelo,

Sorry for the late reply -- we're a small team, and we can't always respond to support requests immediately.

I can't seem to replicate this. Could you forward an example email to me at jmacgreg at gmail dot com?

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Bad link--Need help asap

Postby Rodger » Sat Jun 19, 2010 9:53 am

James-

I am a PHP programmer now working with Angelo and TheJEI.com.

This is the link that is generated for an announcement and broadcast as the permalink to it:

http://thejei.com/index.php/JEI/announcement/view/1

The link previous also appears in my notifications list when logged in as a Journal User, hyperlinked with the text "Go To URL".

It redirects to:

http://thejei.com/index.php/JEI/announc ... ouncement/ and shows a 404 error.

The following are the rewrite rules in our .htaccess:

RewriteCond %{HTTP_HOST} ^thejei.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.thejei.com$
RewriteRule ^/?$ "http\:\/\/thejei\.com\/index\.php\/JEI" [R=301,L]

The correct link, and one that is hyperlinked from the short description in the Announcement Section of the front page of our journal is

http://thejei.com/index.php/JEI/announcement/view/4

In a nutshell, in some instances, the Journal is creating incorrect links to the announcements.

BTW, this installation is using version 2.3.1.
Rodger
 
Posts: 4
Joined: Tue Jun 15, 2010 12:37 pm

Re: Bad link--Need help asap

Postby Rodger » Sun Jun 20, 2010 8:26 am

Alternatively, can you just let me know which files handle the announcements and generating the links?
Rodger
 
Posts: 4
Joined: Tue Jun 15, 2010 12:37 pm

Re: Bad link--Need help asap

Postby jmacgreg » Mon Jun 21, 2010 10:34 am

Hi Rodger,

Thanks for the extra information -- I managed to replicate this and have filed a bug report at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5509. Please feel free to CC yourself for future updates.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Bad link--Need help asap

Postby Rodger » Mon Jun 21, 2010 11:09 am

First glance, looks like this one might be in

/lib/pkp/classes/announcement/PKPAnnouncementDAO.inc.php ???

:?
Rodger
 
Posts: 4
Joined: Tue Jun 15, 2010 12:37 pm

Re: Bad link--Need help asap

Postby Rodger » Mon Jun 21, 2010 2:45 pm

Thank you. The latest patch posted in the bugzilla has worked for us! :D
Rodger
 
Posts: 4
Joined: Tue Jun 15, 2010 12:37 pm

Re: Bad link--Need help asap

Postby jricwaj » Mon Sep 20, 2010 7:27 pm

Hi,


Can you post where is the link for the patch notes on the bugzilla?
jricwaj
 
Posts: 1
Joined: Mon Sep 20, 2010 7:24 pm

Re: Bad link--Need help asap

Postby jmacgreg » Thu Sep 23, 2010 10:22 am

Hi there,

You can find the patch in the bug report linked to below.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron