Advertisement:

Author Topic: Parse error: syntax error, unexpected '?' in /home4/group1331/public_html/class  (Read 488 times)

hatimjamal

  • Newbie
  • *
  • Posts: 8
hello .. can anyone help on this pls .. i get it when i tried to edit a user from the dashboard !!


Parse error: syntax error, unexpected '?' in /home4/group1331/public_html/classifyco.online/oc-admin/themes/modern/users/frm.php on line 235
« Last Edit: August 02, 2016, 06:46:00 pm by hatimjamal »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Hi,

What version of Osclass are you running? Did you modify that file oc-admin/themes/modern/users/frm.php?

Answer these questions and attach here a copy of that file.

Regards

hatimjamal

  • Newbie
  • *
  • Posts: 8
Hello teseo,

Osclass 3.6.1
no modifications was done to that file .
file attached

TKX
« Last Edit: August 02, 2016, 11:43:55 pm by hatimjamal »

hatimjamal

  • Newbie
  • *
  • Posts: 8
BTW , if i delete line 235 ,, everything works fine !! what could be th issue ? some plugin maybe?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Line 235, you have missplaced a ">" and added "</div>" where shouldn't be anything.

Quote
<div class="form-label"><?php _e('Phone'); ?><em><?php _e('(required)'); ?></em></div>></div>

So:

Quote
<div class="form-label"><?php _e('Phone'); ?><em><?php _e('(required)'); ?></em></div>

Anyway, you shouldn't modify core files unless is totally inevitable. And why do you want to add a "Required" label to a field that only the Admin will see? ??? He should know already...

Regards
« Last Edit: August 02, 2016, 11:49:00 pm by teseo »

hatimjamal

  • Newbie
  • *
  • Posts: 8
thanks teseo,

i dont want to add that ,, i guess it happened after installing the reqfields plugin ... and i didnt edit the file !! it just gave me the error !! ..

i'll remove the whole line .. thanks again :)

teseo

  • Hero Member
  • *****
  • Posts: 6169
See my correction now. Anyway, better restore the original line or you'll miss the label "Phone":

Code: [Select]
<div class="form-label"><?php _e('Phone'); ?></div>
Regards

hatimjamal

  • Newbie
  • *
  • Posts: 8
restored .. thanks for your help ..
Regards