Academy Learning Management System

Academy Learning Management System v6.12.2 Untouched

No permission to download

fury3d

New member
May 10, 2022
4
0
1
I debug this script and find out why error 500 occurs while installing addon.
So here is my contribution for this awesome forum.

To bypass license, open /applications/models/Crud_model.php

Replace
PHP:
function curl_request($code = '')
    {

        $product_code = $code;

        $personal_token = "FkA9UyDiQT0YiKwYLK3ghyFNRVV9SeUn";
        $url = "https://api.envato.com/v3/market/author/sale?code=" . $product_code;
        $curl = curl_init($url);

        //setting the header for the rest of the api
        $bearer   = 'bearer ' . $personal_token;
        $header   = array();
        $header[] = 'Content-length: 0';
        $header[] = 'Content-type: application/json; charset=utf-8';
        $header[] = 'Authorization: ' . $bearer;

        $verify_url = 'https://api.envato.com/v1/market/private/user/verify-purchase:' . $product_code . '.json';
        $ch_verify = curl_init($verify_url . '?code=' . $product_code);

        curl_setopt($ch_verify, CURLOPT_HTTPHEADER, $header);
        curl_setopt($ch_verify, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch_verify, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch_verify, CURLOPT_CONNECTTIMEOUT, 5);
        curl_setopt($ch_verify, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');

        $cinit_verify_data = curl_exec($ch_verify);
        curl_close($ch_verify);

        $response = json_decode($cinit_verify_data, true);

        if (count($response['verify-purchase']) > 0) {
            return true;
        } else {
            return false;
        }
    }

To
PHP:
function curl_request($code = '')
    {

        return !empty($code) ? true : false;

    }

For addon error, it happens because the name difference between folder and archive name. Simply, match your archive name with its folder inside, or vice-versa. Then do a little modification, open /applications/models/Addon_model.php

Replace
PHP:
$zipped_file_name = $_FILES['addon_zip']['name'];

To
PHP:
if(isset($_FILES['addon_zip'])){
            $zipped_file_name = $_FILES['addon_zip']['name'];
}
If I make these changes can I install the addons?
 

fury3d

New member
May 10, 2022
4
0
1
I debug this script and find out why error 500 occurs while installing addon.
So here is my contribution for this awesome forum.

To bypass license, open /applications/models/Crud_model.php

Replace
PHP:
function curl_request($code = '')
    {

        $product_code = $code;

        $personal_token = "FkA9UyDiQT0YiKwYLK3ghyFNRVV9SeUn";
        $url = "https://api.envato.com/v3/market/author/sale?code=" . $product_code;
        $curl = curl_init($url);

        //setting the header for the rest of the api
        $bearer   = 'bearer ' . $personal_token;
        $header   = array();
        $header[] = 'Content-length: 0';
        $header[] = 'Content-type: application/json; charset=utf-8';
        $header[] = 'Authorization: ' . $bearer;

        $verify_url = 'https://api.envato.com/v1/market/private/user/verify-purchase:' . $product_code . '.json';
        $ch_verify = curl_init($verify_url . '?code=' . $product_code);

        curl_setopt($ch_verify, CURLOPT_HTTPHEADER, $header);
        curl_setopt($ch_verify, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch_verify, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch_verify, CURLOPT_CONNECTTIMEOUT, 5);
        curl_setopt($ch_verify, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');

        $cinit_verify_data = curl_exec($ch_verify);
        curl_close($ch_verify);

        $response = json_decode($cinit_verify_data, true);

        if (count($response['verify-purchase']) > 0) {
            return true;
        } else {
            return false;
        }
    }

To
PHP:
function curl_request($code = '')
    {

        return !empty($code) ? true : false;

    }

For addon error, it happens because the name difference between folder and archive name. Simply, match your archive name with its folder inside, or vice-versa. Then do a little modification, open /applications/models/Addon_model.php

Replace
PHP:
$zipped_file_name = $_FILES['addon_zip']['name'];

To
PHP:
if(isset($_FILES['addon_zip'])){
            $zipped_file_name = $_FILES['addon_zip']['name'];
}
appeared error 500
 

oxlowl

New member
Jan 23, 2019
2
0
1
appeared error 500
Please enable error check in CodeIgniter
  • Make your /application/logs folder writable
  • In /application/config/config.php set
    $config['log_threshold'] = 1;
After that try to install again, check error log file in /application/logs and share it here.
 

Knight_Killer

Active member
Trusted Uploader
Aug 28, 2020
135
94
28
Please enable error check in CodeIgniter
  • Make your /application/logs folder writable
  • In /application/config/config.php set
    $config['log_threshold'] = 1;
After that try to install again, check error log file in /application/logs and share it here.
Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2021-07-11 14:53:11 --> Severity: Warning --> count(): Parameter must be an array or an object that implements Countable /public_html/application/models/Crud_model.php 2011
ERROR - 2021-07-11 14:53:11 --> Severity: Warning --> file_get_contents(uploads/addons/academyliveclass-11/config.json): failed to open stream: No such file or directory /public_html/application/models/Addon_model.php 69
ERROR - 2021-07-11 14:53:11 --> Query error: Column 'name' cannot be null - Invalid query: INSERT INTO `addons` (`name`, `unique_identifier`, `version`, `about`, `status`, `purchase_code`, `created_at`) VALUES (NULL, NULL, NULL, NULL, 1, '', 1311206400)
 

fury3d

New member
May 10, 2022
4
0
1
Please enable error check in CodeIgniter
  • Make your /application/logs folder writable
  • In /application/config/config.php set
    $config['log_threshold'] = 1;
After that try to install again, check error log file in /application/logs and share it here.
are these modifications made before installing or installing already?
 

fury3d

New member
May 10, 2022
4
0
1
Look wouldn't it be easier to put the already modified file in nulled here? Someone who made the modifications and both to install and the addons are in nulled, the person can install and add the addons easily? But I also like to make the modifications myself because I'm learning gradually
 

Knight_Killer

Active member
Trusted Uploader
Aug 28, 2020
135
94
28
so you were able to install the addons, was it the steps that people said you used? I'll try again in a little while, if it goes wrong I'll see if I can make that log and send here the error that is causing.
can we have chat in dm..?
 

oxlowl

New member
Jan 23, 2019
2
0
1
Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2021-07-11 14:53:11 --> Severity: Warning --> count(): Parameter must be an array or an object that implements Countable /public_html/application/models/Crud_model.php 2011
ERROR - 2021-07-11 14:53:11 --> Severity: Warning --> file_get_contents(uploads/addons/academyliveclass-11/config.json): failed to open stream: No such file or directory /public_html/application/models/Addon_model.php 69
ERROR - 2021-07-11 14:53:11 --> Query error: Column 'name' cannot be null - Invalid query: INSERT INTO `addons` (`name`, `unique_identifier`, `version`, `about`, `status`, `purchase_code`, `created_at`) VALUES (NULL, NULL, NULL, NULL, 1, '', 1311206400)
Rename your live class archive to live-class.zip. It should work.
This error is clear
PHP:
Severity: Warning --> file_get_contents(uploads/addons/academyliveclass-11/config.json): failed to open stream: No such file or directory /public_html/application/models/Addon_model.php 69

Here is the addon from post #144
 

Attachments

  • live-class.zip
    9.5 KB · Views: 46
  • Like
Reactions: Knight_Killer

Knight_Killer

Active member
Trusted Uploader
Aug 28, 2020
135
94
28
Rename your live class archive to live-class.zip. It should work.
This error is clear
PHP:
Severity: Warning --> file_get_contents(uploads/addons/academyliveclass-11/config.json): failed to open stream: No such file or directory /public_html/application/models/Addon_model.php 69

Here is the addon from post #144
it sounds good, install successful, got bubble of congratulations, but in my addon entries it is not showing,

can u please help me out..? for the same..

thanks in advance.!
 

oxlowl

New member
Jan 23, 2019
2
0
1
it sounds good, install successful, got bubble of congratulations, but in my addon entries it is not showing,

can u please help me out..? for the same..

thanks in advance.!
Try to delete and reinstall. If still not showing, I'll check it later after having access to my computer. I can't quite remember what I did since I uninstall it already.
 

Knight_Killer

Active member
Trusted Uploader
Aug 28, 2020
135
94
28
Try to delete and reinstall. If still not showing, I'll check it later after having access to my computer. I can't quite remember what I did since I uninstall it already.
the section is not showing any addon then how can I delete addon bro..? :/
 

oxlowl

New member
Jan 23, 2019
2
0
1
the section is not showing any addon then how can I delete addon bro..? :/
If you install live-class addon, then delete
  • live-class folder in /uploads/addon
  • Liveclass.php in /application/controllers/addons
  • Liveclass_model.php in /application/models/addons
  • live_class.php and live_class_settings.php in /application/views
  • live_class.php in /application/views/backend
 

fury3d

New member
May 10, 2022
4
0
1
If you install live-class addon, then delete
  • live-class folder in /uploads/addon
  • Liveclass.php in /application/controllers/addons
  • Liveclass_model.php in /application/models/addons
  • live_class.php and live_class_settings.php in /application/views
  • live_class.php in /application/views/backend
what if i can't install? Nulled format is not working!
 

fury3d

New member
May 10, 2022
4
0
1
Upgrade issue, give an error because the upgrade is not nulled, does anyone know how to leave?
Because I already have the site, it's version 4.7, but I wanted to move to version 5, I would configure and pass users manually, to delete the old version, reinstall and put the edited version on top, but if anyone knows this helps .
 

fury3d

New member
May 10, 2022
4
0
1
Or if someone has the files edited to install the addons, please have a way to put the files and I just add them on the server, deleting the files and putting these in order to install the addons. I've been on this for a few days now and I can't lol
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu