Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / AdsManager: Delete Ads Cron: Restricted access

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

AdsManager: Delete Ads Cron: Restricted access

More
9 years 2 months ago - 9 years 2 months ago #18484 by Netizen
Hello,

There is very little to nothing in your documentation regarding Cron Jobs to delete expired ads, OR I just cannot find it in your documentation.
I have setup the following cron job in the server:
php /home/xxxxxxxxx/public_html/components/com_adsmanager/cron.php
and I have assigned the user responsible for that xxxxxxx domain, however I am getting 'Restricted Access' when the job is run.
The same happens if I run it as root.

What is the correct process of deleting the expired ads by running a command in the same server that the AdsManager is installed?

PS:
Even when I tried to run the command from my local browser by using this:
http://xxxxxxxxxxxxx/index.php/en/?option=com_adsmanager&task=cron
....it returned 'not allowed' in the browser's window.

:(
Last edit: 9 years 2 months ago by Netizen.
The following user(s) said Thank You: adarr
More
9 years 2 months ago #18511 by loic
Hello,

In the configuration of AdsManager, 'General' tab, you need to set the Cron type to 'on user access'.

The cron will be executed when a user go on your website.

Best regards.
The following user(s) said Thank You: adarr
More
9 years 2 months ago #18571 by Netizen
I tried that but it didn't work probably because I was making changes to the Cron method while the ads where already there? Maybe because I am also using CommunityBuilder for the users to login and not Joomla? Don't know.

In any case this is *not* what I call the 'Recommended' method to automatically expire the ads. It is common that people insert ads in to various websites and they do not return back unless there is a need for it.
Even if your system works with any user (i.e not the ad owner having to login) it is still not accurate. I prefer if there is a cron job that checks on an interval all ads and expires the appropriate ones when needed. This is why I tried to use the Linux Cron method but, as I said, it gave an error.
What am I doing wrong here?

Extra question: Are the email reminders (that ads are due to expire) depended on this Cron job as well?
The following user(s) said Thank You: adarr
More
9 years 2 months ago #18610 by Netizen
Hello.

Any update to this problem?
Can you please provide step by step guide how to fix the problem?
See also my last post on this.

Thank you
The following user(s) said Thank You: adarr
More
9 years 2 months ago #18663 by Netizen
Can someone please provide help on this?

I tried the webcron method and the remote browser showed "Done" however no changes in the ads.
Those that had a PAST expiry date are still on the system.

I also tried again with the Linux Cron method however the result was this error:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
PHP Notice:  Undefined index: HTTP_HOST in /home/mydomain.com/public_html/libraries/joomla/uri/uri.php on line 96
 
Notice: Undefined index: HTTP_HOST in /home/mydomain.com/public_html/libraries/joomla/uri/uri.php on line 96
AdsManager cron start...
AdsManager cron finish
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The expired ads were still on the site.

:(
The following user(s) said Thank You: adarr
More
9 years 2 months ago #18666 by tompap
Please try to add in your joomla /configuration.php

public $live_site = 'www.mysite.com';

Notice I think will still be here but due to an issue in Joomla Core
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.141 seconds
Powered by Kunena Forum