In the asset wizard, after uploading my first FLV, i get the following fatal error.

Fatal error: require_once() [function.require]: Failed opening required 'modules/asset/asset_bonus/swfheader/swfheader.class.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\mysite\modules\asset\asset_bonus\asset_bonus.module on line 232

I must admit that I first uploaded it, and only afterwards unpacked the asset_bonus.zip package. but after downloading and enabling this package, I still receive the same error message.

and on the mysite/admin/build/modules page, I get the following, similar warning:

    * warning: require_once(modules/asset/asset_bonus/swfheader/swfheader.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\mysite\modules\asset\asset_bonus\asset_bonus.module on line 232.
    * warning: require_once(modules/asset/asset_bonus/swfheader/swfheader.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\mysite\modules\asset\asset_bonus\asset_bonus.module on line 232.

I can't figure out the exact meaning of these messages. would I need to include a line in the asset_bonus.module file? and which line exactly?
as you can see, my site is running on a local apache server (xampp package). the htdocs-folder serves as the root for my site.

thanks in advance for any suggestion,

Joris

Comments

wmostrey’s picture

Category: bug » support
Priority: Critical » Normal

Did you read and follow the installation instructions correctly? You should end up with the following structure:

(sites/all)
modules
 |--asset
   |-- asset_bonus
     |--audioplayer
       |--audioplayer.js
       |--player.swf
     |
     |--swfheader
       |--swfheader.class.php
     |
     |--swfobject
        |--swfobject.js
        |--flvplayer.swf
        |--flvplayer.txt

According to the error, modules/asset/asset_bonus/swfheader/swfheader.class.php doesn't exist. Please note that you should install contributed modules in /sites/all/modules and not in /modules. The /modules directory is reserved for Drupal core modules.

joris.verschueren’s picture

Priority: Normal » Minor
Status: Active » Fixed

that solved it indeed, the structure was faulty. thanks for your time.

Joris

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.