CompanyDirectory module - company details not found (SOLVED - I hope)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

CompanyDirectory module - company details not found (SOLVED - I hope)

Post by starbits »

The CompanyDirectory module is going to be very useful for my application.  I installed it and entered a company.  I created a page including the {CompanyDirectory} tag.  That page works and correctly lists the company I entered. 

However, the company name is designed to be a link to the "detail" entry which shows all the fields of that particular company.  Clicking on that link gives me an "Entry Not Found" message.  Is this a bug, and if so, is there a fix?  Thanks!
Last edited by starbits on Tue Nov 13, 2007 4:41 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CompanyDirectory module - company details not found

Post by calguy1000 »

I searched for the words 'Entry not found' or anything with the word 'found' in it in the company directory module and couldn't even find that string, so that is not the true error message I don't think.

Also, I have four companies in my company directory installation that I use for testing, in one of my pages I added this like {CompanyDirectory}.  viewing that page brought up a summary view correctly, and then clicking on the company name link correctly displayed a detail view.

So I can't see any problem.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: CompanyDirectory module - company details not found

Post by starbits »

Hmm - well, first, thanks for looking at this problem. 

I have installed CMSMS v. 1.2,
CGExtensions 1.2
CompanyDirectory 1.1

The server has PHP 4.4.6 and MySQL 4.1.22

But I noticed a warning in the CompanyDirectory documentation about different templates not working under pretty URLs and I am wondering if that might be a clue.  You see, I am not yet using a domain name.  This is a conversion of an existing site, and while I am setting it up I am working with it as http://servhbw865xd.sn.sourcedns.com/~pdetrade/.  When I am done I will change the nameservers and the config file and the site will become www.pdetrade.com.  So possibly all I have to do is wait. 

If you want to take a look at the error, go here
http://servhbw865xd.sn.sourcedns.com/~p ... de-members
and click on the company name Starbits Studios.

Thanks,
Steve
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CompanyDirectory module - company details not found

Post by calguy1000 »

Hmmm, the URL looks bad:

http://servhbw865xd.sn.sourcedns.com/~p ... 51&page=51

the destination company id is empty, that's weird.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CompanyDirectory module - company details not found

Post by calguy1000 »

I just checked the code:

Code: Select all

  $params['companyid'] = $row['company_id'];
  $onerow->detail_url = $this->CreateLink($id,'details',($detailpage!=''?$detailpage:$returnid),'',
                                          $params,
                                          '',true,$inline,'',false,$prettyurl);
this tells me that the companyid is coming directly from the database.... so maybe try deleting and re-creating your company, or create another one.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: CompanyDirectory module - company details not found

Post by starbits »

Thanks Calguy,

You are right about the URL: if I insert a companyID of 1 in the url it works fine.  Deleting and adding new companies does not help.  I am going to try uninstalling and re-installing both CompanyDirectory and CGExtensions.  I now think the problem is that I installed them in the wrong order.  I installed CompanyDirectory first, and of course it failed (I hadn't read the fine print), so I then installed CGE and re-installed CompanyDirectory.  I will let you know if this works.  Thanks for your help.

Steve
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: CompanyDirectory module - company details not found

Post by starbits »

No joy.  I uninstalled and removed both modules and reinstalled them in the proper order.  Same message.  At this point I am not sure it is fair to continue to ask for your help.  Instead you might be able to help me more if you were to tell me where I might find the PHP code, and the database table in question.

Thanks,
Steve
dvanoss
Forum Members
Forum Members
Posts: 46
Joined: Mon Dec 18, 2006 9:21 pm

Re: CompanyDirectory module - company details not found

Post by dvanoss »

I'm also getting the same message from an installation done today. I also installed the Directory before CGExtensions, and although starbits tried re-installing in the correct order with no affect, I'm wondering if there might be something in the background that wasn't removed by re-installing that's causing a problem; maybe in the database?

An example URL for me is:
http://www.parkviewchurch.org/contents/ ... turnid=219
Looks like I'm also missing the companyid; if I add "1" it works.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: CompanyDirectory module - company details not found

Post by starbits »

I am glad I am not the only one having the problem.  ;)  I suspect you are correct. I have thought about wiping out all of CMSMS and reinstalling, but I think I may be able to get by without the details template.  I will continue to follow this and see if anyone has a solution.  Good luck.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CompanyDirectory module - company details not found

Post by calguy1000 »

Okay, I've reproduced the problem here, I'll have a fix out shortly..... btw, I was not able to reproduce the problem when internal pretty urls were turned on.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CompanyDirectory module - company details not found

Post by calguy1000 »

CompanyDirectory 1.1.1 is out and should be available in module manager soon.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: CompanyDirectory module - company details not found

Post by starbits »

Thanks again, Calguy!  :)
dvanoss
Forum Members
Forum Members
Posts: 46
Joined: Mon Dec 18, 2006 9:21 pm

Re: CompanyDirectory module - company details not found (SOLVED - I hope)

Post by dvanoss »

Excellent - thanks!
chris..
Forum Members
Forum Members
Posts: 62
Joined: Thu Jun 01, 2006 8:03 pm

Re: CompanyDirectory module - company details not found (SOLVED - I hope)

Post by chris.. »

Hi,
I'm using CompanyDirectory 1.1.1 with pretty URL and I've the same problem here. (Should be easy to solve but I don't find)
detail_url is using root/companies/CATEGORY_ID/detail_page_ID instead of root/companies/COMPANY_ID/detail_page_ID.
And the same for picture_location (but directories created are right).

Code: Select all

  $params['companyid'] = $row['company_id'];
  $onerow->detail_url = $this->CreateLink($id,'details',($detailpage!=''?$detailpage:$returnid),'',
                                          $params,
                                          '',true,$inline,'',false,$prettyurl);
Is $id for compid or categoryid ?

Thanx for all, I Love CMSMS !!

EDIT :
Sorry, Solved !!
http://forum.cmsmadesimple.org/index.php/topic,18086.0.html
Last edited by chris.. on Thu Feb 07, 2008 5:43 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”