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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


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

Thanks for the bug report.
Fixed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
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: