vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problem editing CSS (https://vborg.vbsupport.ru/showthread.php?t=324230)

CPokemon 01-18-2017 09:51 PM

Problem editing CSS
 
Hello! I'm looking a solution to a recent problem. I tried to make a couple of modifications to the css archives of my forum, but every time I want to save the changes, get the following error:

Code:

syntax error, unexpected '/' on line 1 in /home/cpokemon/public_html/foro/includes/class_core.php(5559) : eval()'d code
#0 /home/cpokemon/public_html/foro/includes/adminfunctions_template.php(5248) : eval()'d code(52): vB_Template_Runtime::runMaths('/2-1')
#1 /home/cpokemon/public_html/foro/includes/adminfunctions_template.php(5248): eval()
#2 /home/cpokemon/public_html/foro/admincp/template.php(2218): check_template_errors('$final_rendered...')
#3 {main}

Fatal User Error: syntax error, unexpected '/' on line 1 in ..../includes/class_core.php(5559) : eval()'d code in ..../vb/vb.php on line 286

#1 : vbstop() called in ..../includes/class_core.php on line 6034
#2 : vbulletin_error_handler() called in  on line
#3 : trigger_error() called in ..../vb/vb.php on line 286
#4 : vB::handleException() called in  on line

I recently updated to version 4.2.5 to support PHP 7. I know the risks of that, because it is an alpha version, but don?t know if it is caused by this reason or not.

Dave 01-18-2017 10:43 PM

My guess is that there's a mathematical expression somewhere in the CSS template that evaluates incorrectly.
More specifically, look for "/2-1".

CPokemon 01-20-2017 08:28 PM

Quote:

Originally Posted by Dave (Post 2581047)
My guess is that there's a mathematical expression somewhere in the CSS template that evaluates incorrectly.
More specifically, look for "/2-1".

Sorry! I didn't understand. Anyway, the error appears in any CSS template of any other theme.

Lynne 01-20-2017 10:12 PM

What is the exact CSS you are adding and exactly where are you adding it?

CPokemon 01-21-2017 02:39 AM

Quote:

Originally Posted by Lynne (Post 2581136)
What is the exact CSS you are adding and exactly where are you adding it?

I'm just editing the number 62 to 64 of the % in:

Code:

.threadlisthead span.threadinfo {
        width: 62%;
}

I'm editing in the admincp, styles and templates -> threadlist.css in the CSS templates.

No matter what you edit, it always gives the same error.

Lynne 01-21-2017 07:11 PM

You really should not edit any of the .css templates *except* the additional_css.css template. You should add any changes your want to the CSS into that template.

But anyhow, so, editing *any* template at all gives that error? Can you check your /includes/class_core.php file and make sure it is complete and is for 4.2.5? Line 5559 is just a comment line and shouldn't be giving any eval errors.

CPokemon 01-23-2017 03:59 PM

Quote:

Originally Posted by Lynne (Post 2581174)
You really should not edit any of the .css templates *except* the additional_css.css template. You should add any changes your want to the CSS into that template.

But anyhow, so, editing *any* template at all gives that error? Can you check your /includes/class_core.php file and make sure it is complete and is for 4.2.5? Line 5559 is just a comment line and shouldn't be giving any eval errors.

This is the line 5559 in the class_core.php file:

Code:

                        $status = @eval("\$str = $str;");
Any "CSS template" gives me the same error. Templates like threadbit (not css) works fine when I edit.

Lynne 01-24-2017 04:05 AM

Ask your host if you have mod_security or suhosin on your server. What you are describing sounds like your host has some sort of security on your server.


All times are GMT. The time now is 07:23 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.02184 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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