11
Peekay
Re: XHelp Pop email Not working - Cron help
  • 2010/6/15 20:28

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Open-source software can provide an effective and low-cost solution to website projects. However, the very nature of it's development means that '100% working' can sometimes be elusive!

Bump this thread every now and then and hopefully an experienced Xhelp user will see it.
A thread is for life. Not just for Christmas.

12
ghia
Re: XHelp Pop email Not working - Cron help
  • 2010/6/15 22:05

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


There seems to be an incompatibility with 2.4.4 for retrieving the email.
Seems the XOOPS 2.4.4 core with option nocommon on is no longer working, due to some depencies on the $xoops object in other class and kernel files.
I will come back on this.

13
TDE-Drums
Re: XHelp Pop email Not working - Cron help
  • 2010/6/15 22:12

  • TDE-Drums

  • Just popping in

  • Posts: 29

  • Since: 2010/6/14


Thank you!

I will check back and see if there are any updates to this post.

David

14
ghia
Re: XHelp Pop email Not working - Cron help
  • 2010/6/16 8:16

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You need to change
in /class/xoopsuser.php
include_once $GLOBALS['xoops']->path('kernel/user.php');
to
include_once XOOPS_ROOT_PATH.'/kernel/user.php';
in /kernel/config.php
require_once $GLOBALS['xoops']->path('kernel/configoption.php');
require_once 
$GLOBALS['xoops']->path('kernel/configitem.php');
to
require_once XOOPS_ROOT_PATH.'/kernel/configoption.php';
require_once 
XOOPS_ROOT_PATH.'/kernel/configitem.php';


And you are right, you can not use the checkemail.php from inside the browser. You must execute it by a CRON or console prompt eg in Windows with XAMPP
D:\xampp1.7.2\htdocs\244\modules\xhelp>/xampp1.7.2/php/php.exe D:\xampp1.7.2\htd
ocs\244\modules\xhelp\checkemail.php

15
TDE-Drums
Re: XHelp Pop email Not working - Cron help
  • 2010/6/16 19:00

  • TDE-Drums

  • Just popping in

  • Posts: 29

  • Since: 2010/6/14


Ok thanks, I will test this and report back.

One question is should I also keep the original changes to an earlier post or revert back to that original file that I changed early on?

Thanks

David

16
TDE-Drums
Re: XHelp Pop email Not working - Cron help
  • 2010/6/17 18:20

  • TDE-Drums

  • Just popping in

  • Posts: 29

  • Since: 2010/6/14


No luck with that code change. The system is not returning any results.

Here is how I have been testing.

1. Back up file.
2. Change the code.
3. Turn Cron back on
4. Send multiple emails to the address in my xhelp admin
5. Wait 24hrs even though the cron is running every second.

That was with the original code change in place plus the additional code change. Then I also tried the same steps with the original code change back in place with the new code change.

Thanks for all of your help. I wonder with so many variables. .php version, mysql version, xoops version and xhelp version it would need to be tested and worked on directly with a programmer?

Thanks

David

17
ghia
Re: XHelp Pop email Not working - Cron help
  • 2010/6/17 19:04

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Sorry, forgot something for in mainfile.php
At the end make it look like this:
if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    } else {
    global 
$xoops$xoopsPreload;
    
defined('DS') or define('DS'DIRECTORY_SEPARATOR);
        require_once 
XOOPS_ROOT_PATH DS 'class' DS 'xoopsload.php';
        
XoopsLoad::load('preload');
        
$xoopsPreload =& XoopsPreload::getInstance();
    }
Is your Cron Job making logs?
Or do you have the possibility to run it via a command prompt (SSH putty) for watching output messages?
If the mail is processed, it is deleted from the mailbox.

IMHO the Cron should run only once in 5 minutes.

18
TDE-Drums
Re: XHelp Pop email Not working - Cron help
  • 2010/6/17 19:40

  • TDE-Drums

  • Just popping in

  • Posts: 29

  • Since: 2010/6/14


Funny! I said once every second... Sorry, it was once every minute...

Once it is all tested I will switch it to every 5mins.

I will try this code and report back.

Thanks

David

19
TDE-Drums
Re: XHelp Pop email Not working - Cron help
  • 2010/6/17 22:21

  • TDE-Drums

  • Just popping in

  • Posts: 29

  • Since: 2010/6/14


Testing this all again... I will update in a day or so to see how things are going and if the cron is working.

Thanks

David

20
hezina
Re: XHelp Pop email Not working - Cron help
  • 2010/6/18 7:18

  • hezina

  • Just popping in

  • Posts: 3

  • Since: 2010/6/18


many thanks ghia for help us... I have same trouhle...

after last change on mainfile.php isn't any error, but email not download ...

in checkemail.php check for new email get NO....

and there is log from POP3 server

10:39:02 960 Accepted POP3 connection with: 10.1.2.245
10:39:02 960 *** NEW PHYS. CONNECTION, Tbl Entry=0, Socket=20
10:39:02 960 POP3 command: CAPA
10:39:02 960 POP3 command: USER xhelpdesk
10:39:02 960 Successful login with client/server access: mailserver:1677
10:39:02 960 POP3 command: PASS
10:39:02 960 POP3 command: STAT
10:39:02 960 POP3 command: QUIT
10:39:02 960 POP3 session ended: 10.1.2.245

and get error

Fatal error: Call to a member function path() on a non-object in /srv/www/vhosts/BDOIntranet/kernel/member.php on line 25

Login

Who's Online

237 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits