1
anderssk
Error in smartobject
  • 2008/8/2 15:20

  • anderssk

  • Quite a regular

  • Posts: 335

  • Since: 2006/3/21


Hi'

I'm getting an error when I click the "Create an adsense add" in the Smartobject version 1.0.1

Fatal error: Cannot redeclare class XoopsFormCaptcha in /hsphere/local/home/www/modules/smartobject/include/captcha/formcaptcha.php on line 79

And some other errors
Notice: Undefined offset: 0 in file /modules/smartobject/class/smartobjecthandler.php line 273
Notice: Cannot use variable starting with 'url_'. in file /modules/smartobject/class/smartobject.php line 103
Warning: mkdir(): Permission denied in file /modules/smartobject/include/functions.php line 306

PHP version 5.2.2
MySql version 5.0.41
Xoops version 2.3.0 RC

Any solutions?

2
pablo103
Re: Error in smartobject
  • 2008/12/19 11:34

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


the same error!

3
ghia
Re: Error in smartobject
  • 2008/12/19 11:59

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
Fatal error: Cannot redeclare class XoopsFormCaptcha in /hsphere/local/home/www/modules/smartobject/include/captcha/formcaptcha.php on line 79
By including Captcha in the core, 2.3.x is no longer compatible with your module. Try to modify code to use the core Captcha in stead of the module Captcha.
Quote:
Notice: Undefined offset: 0 in file /modules/smartobject/class/smartobjecthandler.php line 273
?
Quote:
Notice: Cannot use variable starting with 'url_'. in file /modules/smartobject/class/smartobject.php line 103
This may be related to a new php version? Try with renaming the url_ part to myurl_ or something.
Quote:
Warning: mkdir(): Permission denied in file /modules/smartobject/include/functions.php line 306
Your server may restrict directory creation or the parent directory is not set to the right permissions. Create the directory by FTP or site admin panel by hand.

4
trabis
Re: Error in smartobject
  • 2008/12/19 13:58

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
Fatal error: Cannot redeclare class XoopsFormCaptcha in /hsphere/local/home/www/modules/smartobject/include/captcha/formcaptcha.php on line 79

Edit smartobject/admin/adsense.php line 71 and do this
case "addadsense":
        
//if(@include_once SMARTOBJECT_ROOT_PATH . "include/captcha/captcha.php") {
             
$xoopsCaptcha XoopsCaptcha::instance();
             if(! 
$xoopsCaptcha->verify() ) {
                 
redirect_header('javascript:history.go(-1);'3$xoopsCaptcha->getMessage());
                 exit;
             }
        
//}
        
include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
        
$controller = new SmartObjectController($smartobject_adsense_handler);
        
$controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED_AM_SOBJECT_ADSENSES_MODIFIED);
        break;

Quote:
Notice: Undefined offset: 0 in file /modules/smartobject/class/smartobjecthandler.php line 273

In what page are you getting this?

Quote:
Notice: Cannot use variable starting with 'url_'. in file /modules/smartobject/class/smartobject.php line 103

'url_' reserved for smartobject files, were are yo getting this?

Quote:
Warning: mkdir(): Permission denied in file /modules/smartobject/include/functions.php line 306

Seems like wrong path or bad folder permissions, were are you getting this?

Login

Who's Online

326 user(s) are online (260 user(s) are browsing Support Forums)


Members: 0


Guests: 326


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits