Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 01-18-2017, 09:51 PM
CPokemon CPokemon is offline
 
Join Date: Sep 2013
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 01-18-2017, 10:43 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My guess is that there's a mathematical expression somewhere in the CSS template that evaluates incorrectly.
More specifically, look for "/2-1".
Reply With Quote
  #3  
Old 01-20-2017, 08:28 PM
CPokemon CPokemon is offline
 
Join Date: Sep 2013
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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.
Reply With Quote
  #4  
Old 01-20-2017, 10:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the exact CSS you are adding and exactly where are you adding it?
Reply With Quote
  #5  
Old 01-21-2017, 02:39 AM
CPokemon CPokemon is offline
 
Join Date: Sep 2013
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #6  
Old 01-21-2017, 07:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-23-2017, 03:59 PM
CPokemon CPokemon is offline
 
Join Date: Sep 2013
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #8  
Old 01-24-2017, 04:05 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
MarkFL
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04093 seconds
  • Memory Usage 2,235KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete