[solved] Cataloger :: incorrect image urls

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

[solved] Cataloger :: incorrect image urls

Post by urheat »

Used many times this great Cataloger-module. But now I have problems with the image url, that the module (or Cataloger.Image.php?) creates.

The path should be something like:

Code: Select all

www.site.com/uploads/images/catalog/image.jpg
but there is this "module/Cataloger" in the url, like:

Code: Select all

www.site.com/modules/Cataloger/uploads/images/catalog/image.jpg
Any ideas?

Cataloger: 0.11.3
CMSMS: 1.11.4
Last edited by urheat on Sun Mar 24, 2013 4:31 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Cataloger :: incorrect image urls

Post by Jo Morg »

bug report [#8579] wrote:The $config['root_url'] and $config['uploads_url'] that are reported in Catalog.Image.php are incorrect unless they are stated explicitly in config.php (which they are not by default in newer versions of CMSMS).
It will be fixed in next release. For the moment the workaround is, as stated, to set explicitly both config vars in config.php.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
urbanbindi
Forum Members
Forum Members
Posts: 38
Joined: Sat Jan 10, 2009 5:12 pm

Re: [solved] Cataloger :: incorrect image urls

Post by urbanbindi »

Can you explain the workaround and where it should be included? I have a website due to go live soon and need cataloger working properly.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: [solved] Cataloger :: incorrect image urls

Post by Jo Morg »

Just add the correct entries to your config.php file:

Code: Select all

$config['root_url'] = '<your_root_url>';
$config['uploads_url'] = '<your_uploads_url>';
 
Replace the <your_root_url> and <your_uploads_url> with the pertinent values for your site. ;)
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
urbanbindi
Forum Members
Forum Members
Posts: 38
Joined: Sat Jan 10, 2009 5:12 pm

Re: [solved] Cataloger :: incorrect image urls

Post by urbanbindi »

Jo Morg wrote:Just add the correct entries to your config.php file:

Code: Select all

$config['root_url'] = '<your_root_url>';
$config['uploads_url'] = '<your_uploads_url>';
Replace the <your_root_url> and <your_uploads_url> with the pertinent values for your site. ;)
Thanks alot, it worked :)
urbanbindi
Forum Members
Forum Members
Posts: 38
Joined: Sat Jan 10, 2009 5:12 pm

Re: [solved] Cataloger :: incorrect image urls

Post by urbanbindi »

I wanted to add...

now the "no image" graphic is being displayed for items with no images assigned. However, when I upload an image, there is still no image available for the item.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: [solved] Cataloger :: incorrect image urls

Post by Jo Morg »

You may also need t set the uploads_path on the config.php...
Not sure...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
urbanbindi
Forum Members
Forum Members
Posts: 38
Joined: Sat Jan 10, 2009 5:12 pm

Re: [solved] Cataloger :: incorrect image urls

Post by urbanbindi »

Jo Morg wrote:You may also need t set the uploads_path on the config.php...
Not sure...
Yep that's right, I added it soon after I submitted that last post.
Post Reply

Return to “Modules/Add-Ons”