GeSHi Syntax Highlighter [Deleted]

This update broke it:
Code:
ErrorException: Undefined index: LANG_NAME - library/DigitalPointSyntaxHighlighter/geshi.php:651
Generated By: Squawkers13, Today at 9:53 AM
Stack Trace

#0 /srv/spigot-forums/library/DigitalPointSyntaxHighlighter/geshi.php(651): XenForo_Application::handlePhpError(8, 'Undefined index...', '/srv/spigot-for...', 651, Array)
#1 /srv/spigot-forums/library/DigitalPointSyntaxHighlighter/BbCode/Formatter/Base.php(92): GeSHi->get_language_name()
#2 [internal function]: DigitalPointSyntaxHighlighter_BbCode_Formatter_Base->renderTagCode(Array, Array, Object(DigitalPointSyntaxHighlighter_BbCode_Formatter_Base))
#3 /srv/spigot-forums/library/XenForo/BbCode/Formatter/Base.php(664): call_user_func(Array, Array, Array, Object(DigitalPointSyntaxHighlighter_BbCode_Formatter_Base))
#4 /srv/spigot-forums/library/XenForo/BbCode/Formatter/Base.php(575): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#5 /srv/spigot-forums/library/XenForo/BbCode/Formatter/Base.php(488): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#6 /srv/spigot-forums/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#7 /srv/spigot-forums/library/XenForo/BbCode/Formatter/Base.php(449): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#8 /srv/spigot-forums/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#9 /srv/spigot-forums/library/XenForo/BbCode/TextWrapper.php(117): XenForo_BbCode_Parser->render('The [I]spigot.y...', Array)
#10 /srv/spigot-forums/library/EWRcarta/ViewPublic/PageView.php(28): XenForo_BbCode_TextWrapper->__toString()
#11 /srv/spigot-forums/library/XenForo/ViewRenderer/Abstract.php(227): EWRcarta_ViewPublic_PageView->renderHtml()
#12 /srv/spigot-forums/library/XenForo/ViewRenderer/HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('EWRcarta_ViewPu...', 'Html', Array, 'EWRcarta_PageVi...')
#13 /srv/spigot-forums/library/XenForo/FrontController.php(582): XenForo_ViewRenderer_HtmlPublic->renderView('EWRcarta_ViewPu...', Array, 'EWRcarta_PageVi...', NULL)
#14 /srv/spigot-forums/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#15 /srv/spigot-forums/index.php(13): XenForo_FrontController->run()
#16 {main}

Request State

array(3) {
  ["url"] => string(91) "http://www.spigotmc.org/wiki/spigot-configuration-spigot-yml/?redirect=spigot-configuration"
  ["_GET"] => array(2) {
    ["/wiki/spigot-configuration-spigot-yml/"] => string(0) ""
    ["redirect"] => string(20) "spigot-configuration"
  }
  ["_POST"] => array(0) {
  }
}
 
Do I have to do anything to make this work on other styles?
I installed it and it installed fine and seems to work for PHP but will not work with any other code.. I am not getting any errors or anything so not sure why it's not working.
 
So it shows for one style, but if you flip to a different style, the same post doesn't show it (talking about a post that's already created).
 
Hmm, makes sense. But just to make sure, I'm from Germany and using Germany's largest provider Telekom. IPs are changed every 24 hours. So if you've blocked an IP range, you've likely blocked MANY innocent users from Germany (including me). :)

PS: Signed up using my smartphone. This did it for me. Thanks for your quick help.
 
Last edited:
This update broke it:
Code:
ErrorException: Undefined index: LANG_NAME - library/DigitalPointSyntaxHighlighter/geshi.php:651
Generated By: Squawkers13, Today at 9:53 AM

we see the same errors on 1.3.x, mainly for rss-links. Just an example, error-log is flodded with these msgs so there may be other urls affected :
Code:
Error Info
ErrorException: Undefined index: LANG_NAME - library/DigitalPointSyntaxHighlighter/geshi.php:651
Generated By: Unknown Account, 49 minutes ago
Stack Trace
#0 /var/www/xfforum/htdocs/library/DigitalPointSyntaxHighlighter/geshi.php(651): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/xfforu...', 651, Array)
#1 /var/www/xfforum/htdocs/library/DigitalPointSyntaxHighlighter/BbCode/Formatter/Base.php(92): GeSHi->get_language_name()
#2 [internal function]: DigitalPointSyntaxHighlighter_BbCode_Formatter_Base->renderTagCode(Array, Array, Object(DigitalPointSyntaxHighlighter_BbCode_Formatter_Base))
#3 /var/www/xfforum/htdocs/library/XenForo/BbCode/Formatter/Base.php(740): call_user_func(Array, Array, Array, Object(DigitalPointSyntaxHighlighter_BbCode_Formatter_Base))
#4 /var/www/xfforum/htdocs/library/XenForo/BbCode/Formatter/Base.php(647): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#5 /var/www/xfforum/htdocs/library/XenForo/BbCode/Formatter/Base.php(560): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#6 /var/www/xfforum/htdocs/library/XenForo/BbCode/Formatter/Base.php(541): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#7 /var/www/xfforum/htdocs/library/XenForo/BbCode/Formatter/Base.php(521): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#8 /var/www/xfforum/htdocs/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#9 /var/www/xfforum/htdocs/library/XenForo/ViewPublic/Forum/GlobalRss.php(43): XenForo_BbCode_Parser->render('[CODE=C#]class ...')
#10 /var/www/xfforum/htdocs/library/XenForo/ViewRenderer/Abstract.php(227): XenForo_ViewPublic_Forum_GlobalRss->renderRss()
#11 /var/www/xfforum/htdocs/library/XenForo/ViewRenderer/Rss.php(31): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Rss', Array, '')
#12 /var/www/xfforum/htdocs/library/XenForo/FrontController.php(586): XenForo_ViewRenderer_Rss->renderView('XenForo_ViewPub...', Array, '', NULL)
#13 /var/www/xfforum/htdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Rss), Array)
#14 /var/www/xfforum/htdocs/index.php(13): XenForo_FrontController->run()
#15 {main}
Request State
array(3) {
  ["url"] => string(62) "http://forum.team.com/forums/-/index.rss?type=rss2"
  ["_GET"] => array(2) {
    ["/forums/-/index_rss"] => string(0) ""
    ["type"] => string(4) "rss2"
  }
  ["_POST"] => array(0) {
  }
}
 
another issue reported by users are special characters for example in c++ or c#. Both do not work, code is not highlighted. It worked before but can't say for sure since when it's not working anymore.

Code:
CODE=C#]class foreach (var blah in trallalla)[/CODE
CODE=C++]class foreach (var blah in trallalla)[/CODE
 

Attachments

  • syntax highlighting for C# and C++ is falling back to C.webp
    syntax highlighting for C# and C++ is falling back to C.webp
    4.5 KB · Views: 20
I think it was updated to be possible, but I cannot tell. Can we add specific languages to the editor now? I am a bit confused.

Great addon BTW!
 
Im little confused.
Does it work with the xenforo update 1.3.5
I have a forum about coding, so im very dependen on this great plugin.
 
Last edited:
Top Bottom