Problem with link URL

11 posts by 4 authors in: Forums > CMS Builder
Last Post: January 7, 2014   (RSS)

By mattbcd - December 2, 2013 - edited: December 2, 2013

I've a site which has been running for a little while - http://www.bathresidents.org.uk/

The user has added content to 'Meetings Info' via a Multi-record section editor. When I've put the link URL in at the bottom of page http://www.bathresidents.org.uk/meetingsInfo.php , the first couple of records work fine but the most recent ones show 'record not found' - see http://www.bathresidents.org.uk/meetingsInfo.php?11 

The records are definitely there and the record no. is correct so I can't for the life of me work out why it's failing.

I'm using CMSB 2.53 on Linux with PHP v5.4.22 and MySQL v5.5.33

Any ideas?

Matt

By Dave - December 2, 2013

Hi Matt, 

First, there's a PHP error on the main page, you'll want to fix that up: Notice: Undefined index: title in /content/.../meetingsInfo.php on line 57

Next, what's probably happening is that you have multiple viewers in the page (they may even be in includes called by that page) and one that is meant to just load a single record from a section is likely trying the load the record number from the URL.  So for any getRecords() viewers that you want to load the first record make sure to remove this line:    

'where'       => whereRecordNumberInUrl(1),

Next, if you're still getting the error, search in your php files for "Record not found!" and add the section name to the end, eg: 

if (!$mysectionRecord) { dieWith404("Record not found in mysection!"); } // show error message if no record found

That way you'll be able to quickly identify which list viewer code is generating the problem.

Try that and let me know if you need any more help.  Cheers!

Dave Edis - Senior Developer
interactivetools.com

Fabulous!  Deleting that line from one of the loaders did the trick!

Thanks Dave, you're a lifesaver!

Matt

By pod9 - January 6, 2014

Hi, This doesn't quite relate to the above problem but it is a url issue. On this basic blog site http://www.parabenfree.co/ the home page is a standard list page which links to detail pages but the url's seem to be having some extra character being added to them. For example the post that is currently at the top should link to a page with a url of http://www.parabenfree.co/blog.php?Today-is-my-daughters-4th-Birthday-22 but for some reason the url is http://www.parabenfree.co/blog.php?Today-is-my-daughters-4th-Birthday-22#.UsshCPRdX00. IE it has #.UsshCPRdX00 on the end. Why is this and how do I stop it?

I don't want people to be linking to the wrong url of "liking" the wrong url on facebook.

James

Pod9

By pod9 - January 6, 2014

Note that this has only recently started happening, it was fine a few days ago.

Pod9

By Dave - January 6, 2014

Hi pod9, 

I think it's the 3rd party "AddThis" share bar you have on that page.  Here's some tips on disabling that feature:
http://support.addthis.com/customer/portal/questions/108180-strange-characters-in-url

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By pod9 - January 7, 2014

On a different note, I want to setup a forum on a web site of mine. Do you offer any forum software?

Pod9

By ross - January 7, 2014

Hi Pod9

We have a forum plugin under development right now but it's been on the back burner for a while.  Dave has mentioned in another thread that we'll hopefully get it out this year.  Perhaps you could put some thoughts together for us in terms of what you'd like to see in a forum and post them in our Addon's forum:

http://www.interactivetools.com/forum/forum-topics.php?CMS-Builder-Plugins-Add-ons-792

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

By pod9 - January 7, 2014

Hi Ross,

Happy New Year, I hope you're well.

I didn't know where the best place to post was so here you go... My suggestion would be to keep it really simple so it's easy to use from user and admin perspective. Plus there is no point trying to compete with the big boys. 

Also, make sure it's seo friendly.

This guy, http://www.seo-board.com, who seems to be a one man band, seemed to have the right idea but I wouldn't use his software due to lack of support.

Pod9