HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Attempted Spellcheck

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#20139 (In Topic #4683)
Avatar

Well-settled

Spellcheck pops with an error

While editing a news article written by another user I tried the spellcheck and got this error.

Fatal error: Call to undefined function: mixed() in /home/rpgdfw/www/www/data/areaedit/plugins/SpellChecker/spel
l-check-logic.php on line 96

Spellcheck error

Back to the top
 
Posted
Rating:
#20147
Avatar

ocStaff (admin)

Thanks for the bug report.
Fixed.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#20154
Avatar

Well-settled

Spellcheck closes with error

After upgrade, running spellcheck on that article yields a different set of errors starting on line 153. The error returns a messagebox that also says there are no misspelled words even though there are.

Spell Check
Back to the top
 
Posted
Rating:
#20163
Avatar

ocStaff (admin)

Unfortunately we don't really support the spellchecker when PHP doesn't have the 'pspell' plugin installed. When the plugin is not installed ocPortal has to revert to attempting to call up pspell manually, and this is very system specific and often disabled by security mechanisms.

I've briefly scanned the code to see what might be wrong.
Try changing line 151 of data/areaedit/plugins/SpellChecker/spell-check-logic.php from:

Code

      preg_match('/really aspell ([0-9]+)\.([0-9]+)(?:\.([0-9]+))?/i',$aspell_version,$a_ver);
to:

Code

      preg_match('/really [aA]spell ([0-9]+)\.([0-9]+)(?:\.([0-9]+))?/i',$aspell_version,$a_ver);

This is a bit of a shot in the dark though, and there could be further difficulties.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#20172
Avatar

Well-settled

This is over my head, but I thought I'd pass it along.

I tried the shot-in-the-dark, and it missed.  :'(

Unfortunately, my host service tells me that my server doesn't have 'pspell' library installed.  :(

However, they mentioned that I could use the Aspell binary for server-side spellchecking. /usr/bin/aspell  O_o
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: