Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2016-11-23 13:53:15

sauce
Member
Registered: 2014-07-20
Posts: 71

Mark deleted video download error

Code should not be exposed

http://www.******.com/download/2929/mp4/

VException [ 0 ]: VException [ 0 ]: VException [ 0 ]: Application Error! Aborting... ~ /home/*********/public_html/modules/video/components/download.php [ 36 ] ~ /home/*********/public_html/modules/video/video.php [ 52 ]
/home/**********/public_html/libraries/framework/module.php [ 27 ]
22 			try {
23 				require $module_file;
24 				$module_obj		= new $module_class();
25 				$module_obj->render();
26 			} catch(Exception $e) {
27 			    throw new VException($e);
28 			}
29 		} else {
30 			if ($name != '404') {
31 				VModule::load('404', true);
32 			} else {
/home/**********/public_html/index.php [ 41 ] » VModule::load(arguments)
Environment

Offline

#2 2016-11-23 14:12:25

Nuevolab
Member
Registered: 2012-08-01
Posts: 189

Re: Mark deleted video download error

This is not a bug.
Error reporting is for webmaster, not for public. It should be activated only when you need it, not all the time.
Also if you check script admin carefully, it offers choice between custom error handling as above, or standard PHP method, which shows less code.  So it's what webmaster prefers, depends how much code he wants to see in specific situation, but certainly not having it switched on all the time.

Offline

#3 2016-11-23 16:24:03

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mark deleted video download error

So after you mark a video as deleted and you click on download this error appears?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#4 2016-11-24 10:54:46

sauce
Member
Registered: 2014-07-20
Posts: 71

Re: Mark deleted video download error

symtab wrote:

So after you mark a video as deleted and you click on download this error appears?

Click MP4 or MOBILE will report an error

delete.jpg

Offline

#5 2016-11-24 13:31:07

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mark deleted video download error

Will fix in 2.2.5. If you want to fix on your site now edit templates/defboot/video_view.tpl.php and replace:

<?php if ($this->video['embed_code'] == '' && $this->video['allow_download'] == '1' && $this->download): ?>

with:

<?php if ($this->video['embed_code'] == '' && $this->video['allow_download'] == '1' && $this->download && $this->video['status'] == '1'): ?>

The above code appears two times. Replace both.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB