Page 1 of 1
Link to start jobs in CGJobMgr redirected [SOLVED]
Posted: Fri Sep 14, 2012 2:17 pm
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
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Fri Sep 14, 2012 9:51 pm
by Dr.CSS
Any links in the CGJobMgr modules admin or in the Help are not for the front end...
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Sun Sep 16, 2012 12:10 am
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
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Mon Sep 17, 2012 9:23 am
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
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Mon Sep 17, 2012 11:20 am
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.
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Mon Sep 17, 2012 2:50 pm
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.
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Mon Sep 17, 2012 3:07 pm
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?
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Tue Sep 18, 2012 7:04 am
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).
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Thu Sep 20, 2012 6:08 pm
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
Re: Link to start jobs in CGJobMgr redirected to home page
Posted: Thu Sep 27, 2012 11:50 am
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}
Re: Link to start jobs in CGJobMgr redirected [SOLVED]
Posted: Thu Sep 27, 2012 12:15 pm
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.
Re: Link to start jobs in CGJobMgr redirected [SOLVED]
Posted: Thu Sep 27, 2012 5:49 pm
by hdriezen
Thanks applejack, I tried that but it didn't work, at least not in my situation.