Judah Raine
Total posts: 332
16 May 2013 11:01

Hi there, sorry to bug you :) I have looked up the previous questions relating to this and compared below, but first I should say I just updated all of cobalt and fields, media, etc to latest packages (Tuesday) which is when the issue started, though I have checked that my custom templates are uploaded. The error code is:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/classicr/public_html/components/com_cobalt/fields/url/tmpl/output/bookstore amazon.php on line 25

Line 25 is the first line in the code below, but I've included the full "paragraph" for context.

params->get('params.qr_code', 0)): $width = $this->params->get('params.qr_width', 60); $src = 'http://chart.apis.google.com/chart?chs='.$width.'x'.$width.'&cht=qr&chld=L|0&chl='.$url; ?>
        <?php echo JHtml::image($src, JText::_('URL QR'), array( 'class' => 'qr-image', 'width' => $width, 'height' => $width, 'align' => 'top'));?>

I'd really appreciate your assistance, thank you.

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
17 May 2013 07:00

Tryt o attach this file here. I cannot see nay error here.


Judah Raine
Total posts: 332
19 May 2013 07:45

File uploaded :)


Sergey
Total posts: 13,748
20 May 2013 00:04

In line 20 there is images word. I think you have to delete it.


Judah Raine
Total posts: 332
20 May 2013 03:20

Thanks I'll give this a try :)


Judah Raine
Total posts: 332
23 May 2013 12:00

Hi there, finally catching up and had a chance to look at this. I have deleted the "images" word (not even sure how it got there) but still getting this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/classicr/public_html/components/com_cobalt/fields/url/tmpl/output/bookstore amazon.php on line 25

Many thanks,

Jude


Sergey
Total posts: 13,748
23 May 2013 23:44

Does it really have white space in the name?


Judah Raine
Total posts: 332
24 May 2013 06:24

Hi there. No, it doesn't. I've copied the line from the actual php file below.

echo JHtml:: link('http://' . $value[0]['url'].'&tag=romautjudrai-20', "<img src'".JURI::root()."images/bookstore/buyamazon.jpg"'", $options ) ;

Also checked the actual image itself and no whitespace i.e. buyamazon.jpg

Thanks!


Sergey
Total posts: 13,748
24 May 2013 06:29

i meant this

/home/classicr/public_html/components/com_cobalt/fields/url/tmpl/output/bookstore amazon.php

you see bookstore amazon.php with whitespace.

But anyway, i am not sure why you have an error. What i can suggest you is to change your templates slowly. Change one word and check, then another word and check. If you get error then you did something wrong. When you change a lot at the same time then you get error you cannot be sure on what step you got into problems.


Judah Raine
Total posts: 332
24 May 2013 06:58

I will go back and try this again. The problem came in after I upgraded to the latest url package. I will try installing the previous one again and see if that makes a difference.

Powered by Cobalt