Гость
18 Май 2013 12:23

strange issue:

I downloaded

components/com_cobalt/fields/image/tmpl/input/default.php

file

changed line 133 from

style="max-width: 440px; border: 0px solid;" />

to

style="max-width: 250px; border: 0px solid;" />

reuploaded

I get this error when editing a record

Parse error: syntax error, unexpected T_INLINE_HTML, expecting T_ENDSWITCH or T_CASE or T_DEFAULT in /home/sarteano/public_html/components/com_cobalt/fields/image/tmpl/input/custom.php on line 29

so I reverted that line to

style="max-width: 440px; border: 0px solid;" />

reuploaded the file

still the error...

I double-checked the file, it was ok, identical to the original

I downloaded the image plugin from mintjoomla.com

unzipped everything, opened /tmpl/input/default.php

in notepad and compared with the template file on my site

they are identical!

so I tried to reupload the entire plugin via joomla installer

problem solved this time!

well... it's strange, it seems like if you download, edit and save that file, even if you don't change any part of the code you still get that error when editing a record

Последние изменения: 02 Март 2014


Sergey
Total posts: 13,748
20 Май 2013 02:37

Try again. That should work. If file does not work attach it here and I'll check.

Работает на Cobalt