The problem seems to be that even if the theme is nulled, the cloud contents is only available with a valid license.
In the file you shared, you can see this block of code in the "
functions.php" file:
Code:
add_filter('pre_http_request', function($pre, $args, $url) {
if ($url === 'https://cloud.tagdiv.com/api/templates/get_all') {
if ($args['method'] === 'POST' && !empty($args['body']) && isset($args['body']['wp_type'])) {
$wp_type = sanitize_text_field($args['body']['wp_type']);
$new_url = 'https://f004.backblazeb2.com/file/gpltimes/newspaper/' . $wp_type . '.json';
return wp_remote_get($new_url, ['timeout' => 60, 'sslverify' => false]);
}
}
if ($url === 'https://cloud.tagdiv.com/api/templates/check_domains' || $url === 'https://cloud.tagdiv.com/api/templates/activate_domain') {
return ['response' => ['code' => 200, 'message' => 'OK']];
}
return $pre;
}, 10, 3);
That means, if you look into the 5th line, that whoever did the job, bypassed the issue of needing a license by using an installation with a license, copying the templates from it in JSON format, and then hosting it in a place of his, her, or their own. In this case, that place was:
Code:
https://f004.backblazeb2.com/file/gpltimes/newspaper/' . $wp_type . '.json
With one of the possibilities of the variable "
$wp_type", it would turn into:
Code:
https://f004.backblazeb2.com/file/gpltimes/newspaper/templates.json
So what happened?
#1. The place is empty. I tried different possibilities by linking to it directly, and the JSON contents is not there any longer. He, she, or they are no longer hosting it, or at least, not there. That is why you get one of the errors and the lack of functionality.
#2. Since that is (was) non-official content, hosted by someone unknown, it is a
HUGE security risk. Maybe he, she, or they had good intentions, but we will never know, and it could be a problem in the future if the "intentions" and the contents on that URL are replaced by malicious content. It would pass any security test, including VirusTotal, because the contents is not there until it is called by the theme.
Any solutions?
Solution #1. Trying to get hold of the lost contents and somehow inject it into the installation, either directly or by hosting it yourself on a server. The problem with this is first getting the contents, let alone getting updates of that contents when available.
Solution #2. You said that with an older version of the theme it was working, then check the "
functions.php" file of that version if you have it available, and check if in that same block of code, the URL of the contents is different. If it is the same, then they are no longer hosting it or have changed the URL. If the URL is different, then just pass it to the new version.
Solution #3. There might be others offering that plugin nulled too, with the contents available, but again, it would be at your own risk because of what I explained above.
Solution #4. Getting a license.