Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager Add-ons:
Favorites.cgi-pesky 404 error

 

 


rdigit
User

Aug 20, 2005, 8:51 PM

Post #1 of 8 (2685 views)
Shortcut
Favorites.cgi-pesky 404 error Can't Post

After carefully following previous threads, I tweaked the script and have it almost working. I have a 404 error now, have checked permissions, paths and file placement but still can't figure it out.

A sample listing with the link for calling the script is here:

http://www.realtyblvd.com/listman/listings/l0004.html

I appreciate any suggestions for fixing this.


ross
Staff / Moderator


Aug 21, 2005, 10:10 AM

Post #2 of 8 (2678 views)
Shortcut
Re: [realdeal] Favorites.cgi-pesky 404 error [In reply to] Can't Post

Hi realdeal.

Thanks for posting!

After taking a look at your site, it seems as though you may just need to make a slight adjustment to the link path you are using.

I noticed that the rest of your scripts (admin.cgi and search.cgi) are in the cgi-bin. The link to your favorites doesn’t seem to have “cgi-bin” in it. All you should need to do is add “cgi-bin” to the link and you’ll be good to go.

Keep me up to date Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@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.




rdigit
User

Aug 21, 2005, 10:47 AM

Post #3 of 8 (2677 views)
Shortcut
Re: [ross] Favorites.cgi-pesky 404 error [In reply to] Can't Post

Hi Ross,

When I added cgi-bin to the path, it returned a 500 Internal Server Error. There must be some other reason that the file can't be called properly. This is really puzzling.


ross
Staff / Moderator


Aug 21, 2005, 2:25 PM

Post #4 of 8 (2672 views)
Shortcut
Re: [realdeal] Favorites.cgi-pesky 404 error [In reply to] Can't Post

Hi again realdeal.

Thanks for the update!

This new error message is actually letting us know we are getting closer to having this script work properly. You are right though, there is still something else preventing the script from running properly. There are a few things that internal 500 errors can be caused by. The first would be permissions. Favorites.cgi will need to have “755” permissions. Even though you had already checked them, I would double check them once more as I have actually seen some servers change permissions on me after I originally set them. While you are at it, I would also double the permissions on all the other files that favorites.cgi uses. Your readme file will cover the necessary permissions.

If that checks out, I would try deleting the favorites script all together and upload a brand new copy. If you need, I can send a fresh copy to you. Remember to re-set the permissions again.

That should get you going. Keep me up to date though Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@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.




rdigit
User

Aug 22, 2005, 9:27 AM

Post #5 of 8 (2658 views)
Shortcut
Re: [ross] Favorites.cgi-pesky 404 error [In reply to] Can't Post

Good news, Ross-

You were right. 500 error was closer to the mark. I reviewed old posts from there and realized that I needed to make changes to filelock. Now the page loads.

Unfortunately, the data does not load though. I get an empty page. Do I need to make additional adjustments to favorites.cgi?

Thanks again!


ross
Staff / Moderator


Aug 22, 2005, 10:44 AM

Post #6 of 8 (2652 views)
Shortcut
Re: [realdeal] Favorites.cgi-pesky 404 error [In reply to] Can't Post

Hi realdeal.

Thanks for the update. I am glad to see we are making progress Smile.

This time I actually think it might be either a template problem.

Have you made any changes to your templates at all? Also, is the link you are using on the page just the default one that is used as an example in the readme file?

If you had made changes to either of these two things, could you save them in a separate file and try using the default link and template? That way we can at least see if the default settings get us going.

Let me know what you find Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@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.




rdigit
User

Aug 22, 2005, 11:25 AM

Post #7 of 8 (2651 views)
Shortcut
Re: [ross] Favorites.cgi-calls blank page [In reply to] Can't Post

Hi Ross,

I am using the original template fav_view.html. I did modify the link from the listings page to reference the path to my cgi-bin, I also added some data fields. Here is the link:
<a href="/cgi-bin/listman/exec/favorites.cgi?do=add&type=rm&id=$listing_num$&name=$lfield1_ue$&url=$listing_url$/$listing_file$&listdata1=$lfield6$&listdata2=Price:$lfield5$&listdata3=City:$lfield3$&listdata4=$listing_num$_1_t.jpg">Add this listing to favorites</a>

I have made sure that cgi files are loaded in ascii format with permissions set to 755. Templates permissions are properly set to 666.

Favorites.cgi was modified to find path to database:
require "/usr/local/psa/home/vhosts/realtyblvd.com/cgi-bin/listman/exec/fav-db.cgi"; # load database library

Have I missed anything? Thanks!


ross
Staff / Moderator


Aug 23, 2005, 3:26 PM

Post #8 of 8 (2628 views)
Shortcut
Re: [realdeal] Favorites.cgi-calls blank page [In reply to] Can't Post

Hi realdeal.

Thanks for the update again Smile.

Even though the readme suggests “666” permissions, I usually give template files “644” permission instead. I am not sure if that could be causing this problem, but it’s definitely worth a shot.

Another thing you can look at is which version of Listings Manager you are using. When the favorites script was first written, we had separate programs for both Realty Manager and Auto Manager so there was only one templates folder. If you are on one of the more recent versions that has _realty, _generic or _auto as your main templates folder, you’ll still need to make sure the templates are just /templates/template_name.html

Could you look into this and keep me up to date?
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@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.



 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4