text block

Post Reply
giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

text block

Post by giordolo » Fri Oct 20, 2017 10:13 pm

Parse error: syntax error, unexpected 'autore' (T_STRING) in D:\inetpub\webs\pusterlanet\template\homepage\blocks\text\settings.php on line 6

my text;
Pusterla.net è un sito amatoriale nato al solo scopo di ridurre il tempo libero dell'autore; non ha alcun valore scientifico e qualunque riferimento da rimuovere o contestare può essere gestito indirizzando una mail all'autore (chi cerca trova..). Che risponderà nel tempo libero.

note that now when I try to go to the block settings I obtain a blank page, I'm working with ftp to try to solve
Regards

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: text block

Post by Jachym » Fri Oct 20, 2017 10:23 pm

Most likely the problem is in the apostrophe. Use the HTML symbol for apostrophe/quotation mark.

'

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: text block

Post by meteocaldas » Fri Oct 20, 2017 11:37 pm

giordolo wrote: Fri Oct 20, 2017 10:13 pm Parse error: syntax error, unexpected 'autore' (T_STRING) in

my text;
Pusterla.net è un sito amatoriale nato al solo scopo di ridurre il tempo libero dell'autore; non ha alcun valore scientifico e qualunque riferimento da rimuovere o contestare può essere gestito indirizzando una mail all'autore (chi cerca trova..). Che risponderà nel tempo libero.
note that now when I try to go to the block settings I obtain a blank page...
Jachym wrote: Fri Oct 20, 2017 10:23 pm Most likely the problem is in the apostrophe. Use the HTML symbol for apostrophe/quotation mark.
'
That's right Jachym. I already faced that problem and for future users of the textBlock, take into account that special characteres that can be interpreted as HTML or PHP like ' " < > have to be written as html entities &apos; " < > etc or you will get an error and you will not to be able to go back to textBlock settings. The only way to solve the problem is to edit blocks/text/settings.php directly from the server.

So giardolo text should be:
Pusterla.net è un sito amatoriale nato al solo scopo di ridurre il tempo libero dell&apos;autore; non ha alcun valore scientifico e qualunque riferimento da rimuovere o contestare può essere gestito indirizzando una mail all&apos;autore r](chi cerca trova..). Che risponderà nel tempo libero.

Image

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: text block

Post by nikokara - BANNED » Sat Oct 21, 2017 4:55 am

Or try this

Pusterla.net è un sito amatoriale nato al solo scopo di ridurre il tempo libero dell \' autore; non ha alcun valore scientifico e qualunque riferimento da rimuovere o contestare può essere gestito indirizzando una mail all\' autore (chi cerca trova..). Che risponderà nel tempo libero.

(backslash before apostrophe) ;)
niko

giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Re: text block

Post by giordolo » Sat Oct 21, 2017 6:49 am

Thanks to all
Solved via FTP with

Pusterla.net è un sito amatoriale nato al solo scopo di ridurre il tempo libero dell&apos;autore; non ha alcun valore scientifico e qualunque riferimento da rimuovere o contestare può essere gestito indirizzando una mail all&apos;autore r](chi cerca trova..). Che risponderà nel tempo libero.

I have removed r] baceuse it was printed out.
Than I went to block settings and I was able to edit or read. I have pressed SAVE without any change and went in error again. So when it saves, it generate an error manipulating the string.
Now it is OK but with FTP manual edit

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: text block

Post by meteocaldas » Sat Oct 21, 2017 12:27 pm

nikokara wrote: Sat Oct 21, 2017 4:55 am Or try this... (backslash before apostrophe) ;)
Excelent tip. Thanks

http://www.meteocaldas.com/mtp
Image

Post Reply