Jump to content

PHP Message: Undefined index? bitcoin reward


Almondo

Recommended Posts

hey guys I need help with this little snipet I can offer you some small reward in bitcoins $$$ and can offer more money if people help me along the way

A PHP Error was encountered
Severity: Notice
Message: Undefined index: parameter
Filename: models/Config_model.php
Line Number: 38
Backtrace:
File: /var/www/html/application/models/Config_model.php
Line: 38
Function: _exception_handler
File: /var/www/html/application/libraries/Bw_config.php
Line: 333
Function: model
File: /var/www/html/application/core/MY_Controller.php
Line: 27
Function: __construct
File: /var/www/html/application/controllers/Welcome.php
Line: 37
Function: __construct
File: /var/www/html/index.php
Line: 282
Function: require_once

the code of config is

    public function __construct()
    {
        parent::__construct();
        $query = $this->db->get('config');
        if ($query->num_rows() > 0) {
            $this->config = $query->result_array();
            foreach ($query->result_array() as $config) {
                 $this->config[$config['parameter']] = $config['value'];
            }
        } else {
            $this->config = FALSE;
        }
    }
Link to comment
Share on other sites

Is this BitWasp you are using? Their github page clearly states this is not a production ready script, it still being (unactively) developed - Although it does appear to be an abandoned project from googling.

 

We will only help with your own code, not for fixing third party scripts. If you want someone to fix it for you then are free to advertise in our Freelance section.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.