Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: sumondey187873 on 22 June 2012, 08:59:55

Title: image problem
Post by: sumondey187873 on 22 June 2012, 08:59:55
I see This massage in my site In any book :


book->image){ echo '
$this->book->image.'
'; }else{ echo ''.JText::_('COM_ABOOK_NOCOV EROF').''; } ?>


what can i do ?

NT.
     
I used com_abook_2_0_3 version .
Joomla 2.5
PHP 5.3.1
But I use in localhost.
Title: Re: image problem
Post by: federica on 01 July 2012, 16:49:12
Hi sumondey187873,
what is your operating system? (Windows or Linux)
Title: Re: image problem
Post by: sumondey187873 on 18 July 2012, 19:56:34
Thanks
I solve the problem.
Title: Re: image problem
Post by: vicky on 13 September 2012, 10:14:06
I see This massage in my site In any book :


book->image){ echo '
$this->book->image.'
'; }else{ echo ''.JText::_('COM_ABOOK_NOCOV EROF').''; } ?>


what can i do ?

we have windows operating system?
Title: Re: image problem
Post by: federica on 13 September 2012, 11:54:08
HI vicky,
which Abook version are you using?
Title: Re: image problem
Post by: vicky on 14 September 2012, 15:06:12
i am using Alexandria Book Library 2.0.4
Title: Re: image problem
Post by: federica on 14 September 2012, 18:32:01
Hi vicky,
can you send me the url to page without sef?
Title: Re: image problem
Post by: vicky on 15 September 2012, 05:04:09
hi,

what is sef?
Title: Re: image problem
Post by: federica on 15 September 2012, 20:19:18
Hi vicky,
SEF = Search Engine Friendly URLs.
You have to disable whole "SEO Settings" options so I can see the real url.
Title: image problem
Post by: jp on 10 October 2012, 10:38:17
Hi everybody,
I have a very similar problem with Abook 2.0.4 just installed on Win7.
The image is not showed, but I see the default one and the following lines:

book->image){ echo ' '.JText::_('COM_ABOOK_COVEROF').' '.$this->book->title.' '; }else{ echo ''.JText::_('COM_ABOOK_NOCOVEROF').''; } ?>

The loaded image have archive attribute.

The host is still localhost.
I use
Joomla 2.5.7
PHP 5.3.1
MySQL 5.5

Thank you for help
Title: Re: image problem
Post by: jp on 12 October 2012, 21:45:31
I fixed the bug by simply replacing the tag

<?

with

<?php

at the line 43
of the file
\components\com_abook\views\book\tmpl\default.php

Bye
Title: Re: image problem
Post by: dario on 19 October 2012, 10:29:09
Hi jp,
thanks for your notice.
in this thread (http://forum.voxpopulix.org/supporto-(support)/abl-2-0-2-plus-j2-5-4-various-display-and-browsing-problems/msg1363/#msg1363) there is also the same problem.
In php.ini file configuration there is an option called short_open_tag that if you set to On '<?' tags are also accepted.
Federica has already fixed this problem, but not published yet.
It will be present in next version.
Thanks again for your report!