SMF Ads Support Forum

Support => General Support => Topic started by: Mali on July 31, 2018, 12:22:33 PM

Title: Error - LoadAds.php is missing or corrupt
Post by: Mali on July 31, 2018, 12:22:33 PM
Greetings. I installed v2.3 of Ad Management and the Package Manager said installed without issue. However, when I click on Edit Ads under Ad Management I get and error that states that the LoadAds.php file is missing/corrupt from the Sources directory.

I have verified the file is there, manually uploaded a new copy from the zip file to the Sources folder, set rights to 0777 on the file, and still I get the error.

Any thoughts on next steps?
Title: Re: Error - LoadAds.php is missing or corrupt
Post by: vbgamer45 on July 31, 2018, 12:29:59 PM
Is that the exact error message? Is the file in your sources spelled exact LoadAds.php
Title: Re: Error - LoadAds.php is missing or corrupt
Post by: Mali on July 31, 2018, 12:34:21 PM
Here is the exact message:

QuoteIssue with the Ad Mod
LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly. If you are having issues, please visit www.smfads.com!
As far as I can tell the name is correct. Capitalization is the same in the error and  for the file that is in the /Sources folder.
Title: Re: Error - LoadAds.php is missing or corrupt
Post by: vbgamer45 on July 31, 2018, 12:51:10 PM
I think you are misssing this edit
In your index.php

require_once($sourcedir . '/Security.php');

Add after

if (file_exists($sourcedir . '/LoadAds.php'))
require_once($sourcedir . '/LoadAds.php');
Title: Re: Error - LoadAds.php is missing or corrupt
Post by: Mali on July 31, 2018, 09:25:19 PM
That was it. Thank you very much!
Title: Re: Error - LoadAds.php is missing or corrupt
Post by: PATRICIA on August 01, 2018, 11:32:34 AM
Thank you very much! :) :)