Skip navigation

After upgrading Ministra TV Platform to version 5.6.1, you may receive an API v1 not enabled message when you request API v1.

This error occurs due to an attempt to use the request stalker_portal/api/<resource> without specifying the API version, and is fixed as follows:

Edit the file /var/www/stalker_portal/api/htaccess , by changing the line

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

to

RewriteRule ^(.*)$ v1/index.php?q=$1 [L,QSA]

The contents of the file .htaccess will be as follows:

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule .* - [env=TARGET:API]
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{HTTP_HOST} ^v([^\.]+)\.api\..+$
RewriteRule ^(.*)$ api_v2.php?_resource=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ v1/index.php?q=$1 [L,QSA]
</IfModule>
Need Help

Cindy is an expert on the Ministra TV platform and the author of this article.

Was this article helpful?

Yes No

Sorry to hear that.
How can we improve this article?

We use cookies in order to optimise our website, provide you with the best possible user experience and help us promote our products. Please read our Cookie Policy to find out how we use cookies and how you can control cookies.
By using this website or closing this message, you acknowledge our Privacy Policy and agree to our use of cookies as described in our Cookie Policy.