Editor & BB Code Manager

Editor & BB Code Manager 2.0.1 Patch Level 1

No permission to download
Please can be plan add User group permissions for using Special characters?
I don't see a benefit of that. They will be able to insert them either way, by directly copying them from another source, or typing them with their alt-code. All that you would limit is their access to the editor button, and by that definition we could go ahead and implement a permission for every single BB code, which would be heavily overkill IMO.
 
I am getting the following error message:

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry 'arial' for key 'PRIMARY' in src/XF/Db/AbstractStatement.php at line 212
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 79
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 206
XF\Db\AbstractAdapter->insertBulk() in src/addons/KL/EditorManager/Setup.php at line 56
KL\EditorManager\Setup->installStep2() in src/XF/AddOn/StepRunnerInstallTrait.php at line 60
KL\EditorManager\Setup->installStepRunner() in src/XF/AddOn/StepRunnerInstallTrait.php at line 27
KL\EditorManager\Setup->install() in src/XF/Admin/Controller/AddOn.php at line 390
XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1891
XF\App->run() in src/XF.php at line 328
XF::runApp() in admin.php at line 13
 
@Gator I've posted a guide on how to fix that here. I've messaged Chris_D and Mike about this issue and still can't tell why this is happening. Did this error happen while upgrading the add-on?
 
I don't see a benefit of that. They will be able to insert them either way, by directly copying them from another source, or typing them with their alt-code. All that you would limit is their access to the editor button, and by that definition we could go ahead and implement a permission for every single BB code, which would be heavily overkill IMO.

OK but can be plan add User group permissions for using HIDE? Just asking for hide the button if are not have permissions for use.

I am still can not work or does not know how to work Google Webfonts? No fonts list showing default? How to find out Google Webfonts name?

9102dd8a-c826-4146-be4b-5b04933250a6.png


If are not entered into editor box then using any BB Code will place in 2nd line, As well using post reply button will be post in 2nd line. Please can be fix this issue? Please note, I have disabled Delay Load, So its not issue from Delay Load.

Reply me in tomorrow, Take your time.
 
I am still can not work or does not know how to work Google Webfonts? No fonts list showing default? How to find out Google Webfonts name

The cron job that builds the list runs once a week, so you can either wait until it has run at least once or manually start it.
 
The cron job that builds the list runs once a week, so you can either wait until it has run at least once or manually start it.

Do manually start but get server error log.

Code:
GuzzleHttp\Exception\ClientException: Twitch API connection error: Client error response [url] https://www.googleapis.com/webfonts/v1/webfonts?key=XXXXX [status code] 403 [reason phrase] Forbidden src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:89

Generated by: Nirjonmela Apr 4, 2018 at 1:06 AM

Stack trace

#0 src/vendor/guzzlehttp/guzzle/src/Subscriber/HttpError.php(32): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Message\Response))
#1 src/vendor/guzzlehttp/guzzle/src/Event/Emitter.php(108): GuzzleHttp\Subscriber\HttpError->onComplete(Object(GuzzleHttp\Event\CompleteEvent), 'complete')
#2 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(91): GuzzleHttp\Event\Emitter->emit('complete', Object(GuzzleHttp\Event\CompleteEvent))
#3 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#4 src/vendor/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
#5 src/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
#6 src/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#7 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(134): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
#8 src/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#10 src/addons/KL/EditorManager/Repository/GoogleFonts.php(25): GuzzleHttp\Client->get('https://www.goo...')
#11 src/addons/KL/EditorManager/Cron/GoogleFonts.php(13): KL\EditorManager\Repository\GoogleFonts->updateFontList()
#12 [internal function]: KL\EditorManager\Cron\GoogleFonts::run(Array)
#13 src/XF/Admin/Controller/CronEntry.php(112): call_user_func(Array, Array)
#14 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\CronEntry->actionRun(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:CronEntry', 'Run', 'html', Object(XF\Mvc\ParameterBag), 'cronEntries', Object(XF\Admin\Controller\CronEntry), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#18 src/XF.php(328): XF\App->run()
#19 admin.php(13): XF::runApp('XF\\Admin\\App')
#20 {main}

Request state

array(4) {
  ["url"] => string(40) "/admin.php?cron/klEMGoogleFontUpdate/run"
  ["referrer"] => string(38) "/admin.php?cron/"
  ["_GET"] => array(1) {
    ["cron/klEMGoogleFontUpdate/run"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}
 
Try to call https://www.googleapis.com/webfonts/v1/webfonts?key=XXXXX and replace XXXXX with your API key. What does the page say?

Its will that my IP are not restrictions. Now getting other error from manually start.

Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'subsets' in 'field list' src/XF/Db/AbstractStatement.php:212

Generated by: Nirjonmela Apr 4, 2018 at 1:23 AM

Stack trace

INSERT  INTO `xf_kl_em_google_fonts` (`font_id`, `category`, `subsets`, `variants`, `active`) VALUES (?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(160): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1389): XF\Db\AbstractAdapter->insert('xf_kl_em_google...', Array, false)
#6 src/XF/Mvc/Entity/Entity.php(1121): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/addons/KL/EditorManager/Repository/GoogleFonts.php(44): XF\Mvc\Entity\Entity->save()
#8 src/addons/KL/EditorManager/Cron/GoogleFonts.php(13): KL\EditorManager\Repository\GoogleFonts->updateFontList()
#9 [internal function]: KL\EditorManager\Cron\GoogleFonts::run(Array)
#10 src/XF/Admin/Controller/CronEntry.php(112): call_user_func(Array, Array)
#11 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\CronEntry->actionRun(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:CronEntry', 'Run', 'html', Object(XF\Mvc\ParameterBag), 'cronEntries', Object(XF\Admin\Controller\CronEntry), NULL)
#13 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#15 src/XF.php(328): XF\App->run()
#16 admin.php(13): XF::runApp('XF\\Admin\\App')
#17 {main}

Request state

array(4) {
  ["url"] => string(40) "/admin.php?cron/klEMGoogleFontUpdate/run"
  ["referrer"] => string(38) "/admin.php?cron/"
  ["_GET"] => array(1) {
    ["cron/klEMGoogleFontUpdate/run"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}
 
Its will that my IP are not restrictions. Now getting other error from manually start.

Yeah, that's an awkward misspell that I did with the first version of the last update. I have a patch inbound for that for the next update, but if you don't want to wait, go to your database and rename the column subset in the table xf_kl_em_google_fonts to subsets.
 
Do you think it would be possible to add the spell checker plugin?
I thought about that, but then again, native spell checkers already work with the editor, so why force it on users that don't have any installed by default anyway?
 
Back
Top Bottom