vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Apache Error Log... (https://vborg.vbsupport.ru/showthread.php?t=325960)

wolfe 01-06-2018 10:59 AM

Apache Error Log...
 
Does anyone know what could be causing this I have disabled plugins one by one etc but can't find the cause

Code:

mod_fcgid: stderr: PHP Parse error: syntax error, unexpected '<' in /includes/class_core.php(4742) : eval()'d code on line 1
the code on that line is

Code:

        protected function render_output($suppress_html_comments = false)
        {
                //This global statement is here to expose $vbulletin to the templates.
                //It must remain in the same function as the template eval
                global $vbulletin;
                extract($this->registered, EXTR_SKIP | EXTR_REFS);

                $actioned = false;
                ($hook = vBulletinHook::fetch_hook('template_render_output')) ? eval($hook) : false;

                if (!$actioned)
                {
                        $template_code = self::fetch_template($this->template);
                }

                if (strpos($template_code, '$final_rendered') !== false)
                {
                        eval($template_code);
                }
                else
                {
                        eval('$final_rendered = "' . $template_code . '";');
                }

please help... :(

snakes1100 01-06-2018 11:52 AM

Id start in your templates & look for an extra < in there or you didnt close the call, you might of fat fingered some code.

wolfe 01-06-2018 02:17 PM

Quote:

Originally Posted by snakes1100 (Post 2592117)
Id start in your templates & look for an extra < in there or you didnt close the call, you might of fat fingered some code.


Do you think this <!-- --> would cause it in a <vb:if> statement it looked like this

HTML Code:

<vb:if condition="$_COOKIE['aprilfoolsday'] == 'test'">
<!--  -->
<vb:else />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="nzbbackend/js/jquery.cookie.js"></script>
<script type="text/javascript">
<!--
$(function() {
        var COOKIE_NAME = 'aprilfoolsday';
        $go = $.cookie(COOKIE_NAME);
        if ($go == null) {
                $.cookie(COOKIE_NAME, 'test', { path: '/', expires: 1 });
                window.location = "/aprilfools.html"
               
        }
});
//-->

</script>

</vb:if>

--------------- Added [DATE]1515257500[/DATE] at [TIME]1515257500[/TIME] ---------------

nevermind its not fixed it.. Its being called on all pages on the site even custom mods so it has to be something global.. Its just not a very good error tells me nothing.

Dave 01-06-2018 03:10 PM

Does it happen on the default style too?
If not, it's definitely one of your templates that has an extra or missing tag/character somewhere.

wolfe 01-06-2018 03:55 PM

Quote:

Originally Posted by Dave (Post 2592126)
Does it happen on the default style too?
If not, it's definitely one of your templates that has an extra or missing tag/character somewhere.

Well I'm just in the process of finishing off a brand new theme and everyone will be moved over so hopefully it fixes it.


All times are GMT. The time now is 03:45 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.01027 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete