vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Spell Checker: PungoSpell for vBulletin3 Standard and WYSIWYG modes (https://vborg.vbsupport.ru/showthread.php?t=65737)

bi11i 05-04-2005 11:16 PM

yes, in fact the whole thing works, it's just that I get the warnings.... Strange?

tamarian 05-04-2005 11:26 PM

Quote:

Originally Posted by bi11i
yes, in fact the whole thing works, it's just that I get the warnings.... Strange?

Yes, it's strange. Have you installed any hacks to functions.php?

In any case, add this to both php files, and see if it goes:

Quote:

error_reporting(E_ERROR);

bi11i 05-04-2005 11:35 PM

actually yes, I'm running vBadvanced. Like I said, I already put it that line in both files... Any others? (how about putting it in functions.php?)

bi11i 05-07-2005 11:26 PM

my final plea for help! I've tried all of the above and still see these errors.

What can I do? My only hack is vBadvanced; nothing more....

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \global.php on line 367

Warning: in_array() [function.in-array]: Wrong datatype for second argument in \includes\functions.php on line 2285

Warning: Invalid argument supplied for foreach() in \includes\functions.php on line 2290


Marco van Herwaarden 05-08-2005 08:28 AM

Try placing the following in your pungo-spell-config.php, just before the include global.php:

PHP Code:

$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array(); 

PS What PHP version are you running?

bi11i 05-08-2005 04:46 PM

That worked! Thanks!

Logician 05-16-2005 12:08 PM

Quote:

Originally Posted by LunaTech
Line 47, 48, and 49 should look like (note, I've replaced the HEX 0D character, the line break, in with a space so it displays right on this page):

Code:

// can't have newlines or carriage returns in javascript string
$mystr = str_replace(" ", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);

Not:
Code:

// can't have newlines or carriage returns in javascript string
$mystr = str_replace("
", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);

The problem is most editors won't read it right. I had to use UltraEdit32, in UNIX mode. To see if you're having the same problem as I did, try spell checking a single line of text with no line breaks. Just like 3 words. If that works fine but more text doesn't - that's probably the problem.

Good catch!

For me this fixed the "Error:Unterminated string constant" problem of messages with linebreaks:

edit checkspelling.php, find:

PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace(" """$mystr);
$mystr str_replace("\n""_|_"$mystr); 

replace it as:
PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace("\r"""$mystr);
$mystr str_replace("\n""_|_"$mystr); 


cteselle 05-18-2005 10:10 PM

Quote:

Originally Posted by Logician
Good catch!

For me this fixed the "Error:Unterminated string constant" problem of messages with linebreaks:

edit checkspelling.php, find:

PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace(" """$mystr);
$mystr str_replace("\n""_|_"$mystr); 

replace it as:
PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace("\r"""$mystr);
$mystr str_replace("\n""_|_"$mystr); 


adding the \r did it for me to!

ChrisRogers 05-21-2005 06:53 PM

jsfj

bsousa 05-29-2005 09:44 AM

Quote:

Originally Posted by DTC
OK, figured it out! We were missing the .pwli file in the pspell data directory. Cpanel had to wack it at one point...go figure...

Here's what ya need to do:

Check the pspell data directory. If you don't know where that is type:

pspell-config pkgdatadir

That should tell you where to look. In my case it was /usr/share/pspell/

You need to create a file in that directory called en-aspell.pwli (I use english) and the only thing that is in the file is the path to your dictionary. In my case the file contains one line as below:

/usr/lib/aspell/english

Bingo, it works again...

Good 'ole CPanel....

Hope that helps anyone else that has the problem...

Who owns this file on your box? I've tried your suggestion and am still getting the same errors. :disappointed:


All times are GMT. The time now is 03:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01396 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete