PDA

View Full Version : Problem editing CSS


CPokemon
01-18-2017, 09:51 PM
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:

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
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
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:

.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
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:

$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.