Link to start jobs in CGJobMgr redirected [SOLVED]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Link to start jobs in CGJobMgr redirected [SOLVED]

Post by hdriezen »

Somebody help me out here please:

What could be the reason that a link like this:
"http://www.mysite.com/index.php?mact=CG ... eturnid=15

is redirected immediately to the home page of the site, instead of starting the jobs in CGJobMgr like it's supposed to do.

I'm getting quite desperate.

Regards,

Hans

CMSMS 1.11.1
CGExtensions 1.30
CGJobMgr 1.2.7
Newsletter Made Simple 2.5.6
Last edited by hdriezen on Thu Sep 27, 2012 11:51 am, edited 2 times in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by Dr.CSS »

Any links in the CGJobMgr modules admin or in the Help are not for the front end...
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by applejack »

After you have created the job in NMS and then clicked the arrow to start it. In CGJobMgr in settings the link to process it should be "http://www.mysite.com/CGJobMgr/process
Last edited by Dr.CSS on Mon Sep 17, 2012 6:13 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by hdriezen »

I know the link should be "http://www.mysite.com/CGJobMgr/process, but if I don't use mod rewrite it appears the way I wrote in my first post.

So, according to Dr. CSS, this link should not be clicked to start the jobs? How do do i get these jobs started then, because at the moment they don't!

Hans
Last edited by Dr.CSS on Mon Sep 17, 2012 6:14 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by applejack »

You do need to click the link to start the job manually otherwise you need to set up a cron job to process it. See the help file.
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by hdriezen »

i've read the help, created a cronjob, but that doesn't get it started either. I've got one other installation (same cmsms and module-versions) that does work. I really don't get why this one isn't working the way it should.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by applejack »

Is the content and template the same between the 2 cmses. Could be that there is an error which makes the process fail. Have you tried a very simple template / content to test. After running the link what does the job status say?
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by hdriezen »

I was thinking the same thing, Applejack. These two sites have different templates. I will test today if the problem is in there somewhere.
The job status in NMS stays at 'starting'. The job status in CGJobMgr stays at 'not started'.

Thanks for your support so far Applejack, I'll be back later today (hopefully).
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by hdriezen »

I think I found out what goes wrong:
The 'content-type' of the home page of the site is an external link to a html-page. This page is a portal to the rest of the site and has a different design and I want to keep it outside the menu-structure, that's why I chose for this option.
Have a look here: http://www.lezenmoetjedoen.nl to see what I mean.

If I switch the content-type of the home page to 'Content', suddenly CGJobMgr does work!

So maybe the question should be: Is the way I created this home-page a good one, or is there a better solution (which also avoids the CGJobMgr problem)?

Thanks again,

Hans
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Link to start jobs in CGJobMgr redirected to home page

Post by hdriezen »

OK, as I said the problem was in the fact that my home page was an external link instead of content.
Here's what I changed:
- Changed the contenttype of the home page to 'content'
- Made a global content block with the content of the home page
- In the page template I added this to display the home page:

Code: Select all

{if $page_alias == 'home'}
     {global_content name='home'}
{/if}
- And added this in the page template for the rest of the site:

Code: Select all

{if $page_alias != 'home'}
.
.
.
.
.
{/if}
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Link to start jobs in CGJobMgr redirected [SOLVED]

Post by applejack »

When you set up a message in NMS you can set the return page which defaults to home so you could try changing that.
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Link to start jobs in CGJobMgr redirected [SOLVED]

Post by hdriezen »

Thanks applejack, I tried that but it didn't work, at least not in my situation.
Post Reply

Return to “Modules/Add-Ons”