Broken Links

7 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2011   (RSS)

Re: [tsuluwerks] Broken Links

By Jason - April 18, 2011

Hi,

I took a look at your page and wasn't able to find any links that are broken. Could you please give some more information about which links are broken and where that information is coming from?

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Broken Links

Most of the subpage links (located in the pale orange column in the middle of the site) are broken. For example, if I go to the Services page and click on "Notice of Information Practices", it takes me to the link http://www.newcareinc.com/services.php?Notice-of-Information-Practices-4 with the error message "Record not found!"

The record exists in the CMS Builder database (otherwise, the link itself would not show up).

This is happening on almost all of the subpages.

Re: [tsuluwerks] Broken Links

By Jason - April 19, 2011

Hi,

Okay, I see where you're referring to now. Could you attach a copy of services.php so I can see your code. It should be a simple fix.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Broken Links

Thanks, Jason. I also attached the include files.
T

Re: [tsuluwerks] Broken Links

By Jason - April 20, 2011

Hi,

What's happening here is that you're selecting from 6 different sections, but are using 'whereRecordNumInUrl(1)' for each one. So what's happening is that you're selecting your services record correctly, but your other selections are failing since they don't all have the same record number.

Here are the other 5 sections you're selecting from:
contact_and_hours
job_openings
mailing_list
current_edition
jahco_statement


What you can do is first go through your script and if some of these queries aren't being used, you can remove them. If any of these sections are single record section, you can remove the "where" option from these queries.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Broken Links

It still isn't working. I have removed all where and limit references. Now, in the "About MIHC" section, all of the links bring up the same page. I will contact you by phone, since I must present this to my client tomorrow.