#1 (permalink)  
Old 23.07.2008, 14:09
Fer Fer is offline
Neuer Benutzer
 
Join Date: 07.2008
Posts: 26
Rep Power: 4
Fer is on a distinguished road
[vbCMS] Help including php file module location
Hello all,

Happy to join your community at vbdesigns.de

I have an urgent question:

I’m running VbCMS 1.2.5 in vbulletin 3.7.2 all in the same ROOT folder and it works great.

I’ve made a php file module which is simply independent php file (I use addt-interakt framework) see my file here: http://www.elcamajan.com/vbcmsmodul_homepage.php (works perfect)

Since I’m forced to have this file inside the folder “vbcms_global_modules” I moved the file there without any code change, just moved it and It still works fine but some function (thumbnails) do not work anymore: see it here Inicio - El Camajan.com … thumbnail on right top news is not created.
The error is: “Fatal error: Call to a member function on a non-object in <b>/web/htdocs/www.elcamajan.com/home/vbcms_global_modules/vbcmsmodul_homepage.php on line 263
Line 263 cotains: “<img src="<?php echo $objDynamicThumb1->Execute(); ?>”

Above in the line 84 is this related code for thumbnail creation:

// Show Dynamic Thumbnail
$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("camajancms/tabs/images_2news/");
$objDynamicThumb1->setRenameRule("{rs2news.img_news}");
$objDynamicThumb1->setResize(120, 85, true);
$objDynamicThumb1->setWatermark(false);
(I already tried changing paths here but not work)

The thing is that if I place this file in the ROOT works perfect, why not inside “vbcms_global_modules”. Should I declare something additionally ? … can I use a php file located in the ROOT ?... Should I add some extra code to vbcmsmodul_homepage.?

What am I doing wrong ?

Is this the best practice to add custom php files ?

Please HELP, I need urgent to solve this even if I have to pay.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 23.07.2008, 14:31
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 33
Posts: 16,877
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
Do you have buffer the file output in the module options?
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #3 (permalink)  
Old 23.07.2008, 14:33
Fer Fer is offline
Neuer Benutzer
 
Join Date: 07.2008
Posts: 26
Rep Power: 4
Fer is on a distinguished road
Hi Christian,

Thank for the quick support:

Yes, i do have "Buffer file output" set to YES.

??¿¿
Reply With Quote
  #4 (permalink)  
Old 23.07.2008, 14:35
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 33
Posts: 16,877
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
Let me see your complede php file
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #5 (permalink)  
Old 23.07.2008, 14:54
Fer Fer is offline
Neuer Benutzer
 
Join Date: 07.2008
Posts: 26
Rep Power: 4
Fer is on a distinguished road
I just sent you a PM with the file and admin info.

Thanks again!
Reply With Quote
  #6 (permalink)  
Old 23.07.2008, 14:54
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 33
Posts: 16,877
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
All your require_once(''); have relative path i think this is the problem.
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #7 (permalink)  
Old 23.07.2008, 15:32
Fer Fer is offline
Neuer Benutzer
 
Join Date: 07.2008
Posts: 26
Rep Power: 4
Fer is on a distinguished road
Yes, i'm also sure this is related to the "path".

require_once('Connections/camajancms_conn.php');
require_once('includes/tng/tNG.inc.php');

They are being located fine. The problem is in:

$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("camajancms/tabs/images_2news/");


Fatal error: Call to a member function on a non-object in <b>/web/htdocs/www.elcamajan.com/home/vbcms_global_modules/vbcmsmodul_homepage.php on line 263”
Line 263 cotains: “<img src="<?php echo $objDynamicThumb1->Execute(); ?>”



Please, do you have any idea, i can not give absolute paths here.

Can I use a module located in the ROOT and not inside "vbcms_global_modules" ?


Any suggestion Christian ?

Reply With Quote
  #8 (permalink)  
Old 23.07.2008, 17:31
Fer Fer is offline
Neuer Benutzer
 
Join Date: 07.2008
Posts: 26
Rep Power: 4
Fer is on a distinguished road
Can I use a php module located in the ROOT and not inside "vbcms_global_modules" ? ... Please help!
Reply With Quote
  #9 (permalink)  
Old 23.07.2008, 18:39
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 33
Posts: 16,877
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
No you can't
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
Reply

Lesezeichen

Stichworte
include, module, php file

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist On.
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
psd file aircool52 English customer support 12 23.07.2008 04:19
vBCMS Module auch bei Systemmitteilungen einblenden Wulfnoth vBCMS® Fragen 4 01.04.2008 06:48
missing xml file bdsmash Bugs & Fehlersuche 1 20.05.2007 21:44
vbcms Module linke Seite immer sichtbar hr66 vBCMS® Fragen 4 13.04.2007 20:55
[FAQ] Editing the .psd File Christian English customer support 0 11.02.2004 09:51


Copyright © 2006, Reuter & Bloeß GbR.
| Datenschutz | Sitemap | Unsere Partner | Top |
Home Products Forum Über uns Support & FAQs
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Tipp: Fussball | Heilerde
Shopsystem, Shop System, CMS, Webkatalog mit vBCMS CMS