PDA

View Full Version : problem in Daily Digest


ezak
01-17-2009, 05:14 PM
when I enable Daily Digest from cron , its send in sorted email (much topics than should be) and not sorted well

and when do Daily Digest manually form cron
its give me this error


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/user/public_html/forum/includes/functions_digest.php(249) : eval()'d code on line 7


and I disable all hacks and the same problem
use v3.8.0 last , php 5.2.8
what can I do to fix this problem ?
and thanks for advice

Lynne
01-17-2009, 05:19 PM
Have you tried reuploading the script?

ezak
01-17-2009, 05:27 PM
Have you tried reuploading the script?

thanks for fast response
yes I uploaded I clean script

Lynne
01-17-2009, 05:32 PM
What is on line 249 of your functions_digest.php file? That's right near a plugin in mine. Did you disable your plugins via the config.php file?

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

ezak
01-17-2009, 06:04 PM
What is on line 249 of your functions_digest.php file? That's right near a plugin in mine. Did you disable your plugins via the config.php file?

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

yes sir I do this method and I tried it again now and nothing changed

Lynne
01-17-2009, 06:16 PM
Again.... what is on line 249 of your functions_digest.php file?

ezak
01-17-2009, 06:22 PM
at line 249
eval(fetch_email_phrases('digestthreadbit', $forum['languageid']));


which been in this code area
if ($thread['prefixid'])
{
// need prefix in correct language
$thread['prefix_plain'] = fetch_phrase("prefix_$thread[prefixid]_title_plain", 'global', '', false, true, $forum['languageid$
}
else
{
$thread['prefix_plain'] = '';
}

($hook = vBulletinHook::fetch_hook('digest_forum_thread')) ? eval($hook) : false;

eval(fetch_email_phrases('digestthreadbit', $forum['languageid']));
if ($thread['dateline'] > $lastdate)
{ // new thread
$newthreads++;
$newthreadbits .= $message;
}
else
{
$updatedthreads++;
$updatedthreadbits .= $message;
}

Lynne
01-17-2009, 07:17 PM
And what is in your phrase "digestthreadbit"? It sounds like that is where the problem is.

ezak
01-17-2009, 07:34 PM
I found 2 digestthreadbit in my sql

the first 1
************
$thread[prefix_plain]$thread[title]
$vboptions[bburl]/showthread.php?t=$thread[threadid]]
?? ???????:
$thread[forumtitle]
???? ??????:
$thread[postusername
??? ??????:
$thread[lastreplydate]
?????? $thread[lastreplytime]
https://vborg.vbsupport.ru/attachment.php?attachmentid=92932&stc=1&d=1232227860

the second one
************
$thread[prefix_plain]$thread[title]
$vboptions[bburl]/showthread.php?t=$thread[threadid]
In forum: $thread[forumtitle]
Started by: $thread[postusername]
Last post: $thread[lastreplydate] $thread[lastreplytime]

https://vborg.vbsupport.ru/attachment.php?attachmentid=92933&stc=1&d=1232227871

and I use Arabic language (that's case the unknown characters)
can't read in myphpadmin

Lynne
01-17-2009, 07:38 PM
Languages & Phrases > Search in Phrases is where I figured you would look.

But, look at line 7 (what the error states) in your first image. You didn't close $thread[postusername]

ezak
01-17-2009, 07:48 PM
ohhhh thanks alot Lynne
the erorr was here as you said

many thanks again
and thanks for great support

--------------- Added 1232229856 at 1232229856 ---------------

similler problem but for daily clean
but this time couse of Vmail hack
here your instuction to catch the error (if you want to help)
https://vborg.vbsupport.ru/showthread.php?p=1716109&posted=1#post1716109

Lynne
01-17-2009, 09:51 PM
I know nothing about that modification, so I really can't help. But, you went about looking/analyzing the error correctly, so hopefully that helps the developer figure it out.