Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Recomended server configuration

Recomended server configuration 04 Jul 2016 07:19 #14118

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
Hi,
I have started to rewrite my service catalog
goo.gl/qQ82Uh

for Joomla + j-cook,
its more solid and flexible than oxwall.

I am experiencing fatal errors on my machine
with Joomla 3.5.1 + J-cook 2.9

in j-cooks sandbox all images work well.

Which version of PHP do you use?
Which extensions are necessary to handle Images transformations?

greetings
Marcin
The administrator has disabled public write access.

Recomended server configuration 04 Jul 2016 08:12 #14119

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I think there is a possible problem with the thumb prefix (hidden files), using a point (.)
I see it often can cause problems when the configuration forbid the access to hidden files.

I am gonna make the change now.

Can you tell me wich fatals ?
Coding is now a piece of cake
The administrator has disabled public write access.

Recomended server configuration 04 Jul 2016 09:02 #14121

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
thx for super fast replay,
i ve tried to use "direct" link to images,
with no success.

I have to turn on debugging,
to get the fatals,
I'll let you know in the evening,
its not urgent.
The administrator has disabled public write access.

Recomended server configuration 04 Jul 2016 09:27 #14122

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Ok.

Let me know, because I am working with images right now, so if you find errors it is super welcome.
Coding is now a piece of cake
The administrator has disabled public write access.

Recomended server configuration 04 Jul 2016 20:57 #14130

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
Parse error: syntax error, unexpected '' in ........................./com_xxxxxxxxxxxxxx/helpers/file.php on line 2058

PS I have found some other minor bugs with images,
I'll post that tomorrow,
thx
The administrator has disabled public write access.

Recomended server configuration 05 Jul 2016 14:23 #14141

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
hi,
after some testing,
The image functionality is usable and I have successfully build
working catalog component with images and thumbs (ebay style) ,
minor bugs and ideas that I've found:

///////database

//
checkbox if format is allowed or not doesn't change
the behavior or the uploader

///////////// on colection

//
thumb size definded x and y
nothing selected from: center, crop, fit
image has other proportions

//
center only or crop only - same result, crop?

//
one dimension filled - no change
one dimension + crop - co change

//meta:

//
when filled "Image title"
strange link text in on hoover box appear

//
modal preview: not sizing

///////////// on fly

//
modal preview: not working

//
1:n images work!!
have no option to set thumb size, crop, center, fit
and ;) modal gallery preview ;)

//
two toolbars on top and and on the bottom
duplicates the buttons everywhere


//////////////// on form


// when editing the existing image the default icon
is "Delete all images nad thums" the behavior is ok "Do not apply and changes"


//
no 1:n image uploader would be superb


hope that helps.

PS Have you found something in >>> file.php on line 2058, should I reset some configuration on my server ?
The administrator has disabled public write access.

Recomended server configuration 05 Jul 2016 15:13 #14142

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
krasy wrote:
//
1:n images work!!
have no option to set thumb size, crop, center, fit
and ;) modal gallery preview ;)
//

Just for help, I had the same behaviour when i returned in the Builder. To see Images Options, you just have to unclick/click on Preview, and the Options Tab will reappear :)
Last Edit: 05 Jul 2016 15:14 by liubov.
The administrator has disabled public write access.

Recomended server configuration 05 Jul 2016 15:21 #14143

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
Do that, save the Image Options, and Download a new package, I think it can be the source of the Fatal Error ...
The administrator has disabled public write access.

Recomended server configuration 05 Jul 2016 16:43 #14145

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
thx Liubov, I'll try.

In the meanwhile
i have changed
$value = $value[array_keys($value)[0]];
to
$value = $value[array_keys($value)][0];

under:
// Filters
		$filters = array();
		if (isset($attribs->filters) && $attribs->filters && count(get_object_vars($attribs->filters)))
		{
			foreach(get_object_vars($attribs->filters) as $filter => $value)
			{
				if (is_array($value))
in
administrator/component/com_xxxxxx/helpers/file.php

is it ok?

now it works, and guess what?
I have images from sandbox integrated in installation package, cool ;D
Last Edit: 05 Jul 2016 16:45 by krasy.
The administrator has disabled public write access.

Recomended server configuration 09 Jul 2016 09:24 #14196

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
@krasy, I am working on your request.

Here is the beggining

krasy wrote:
checkbox if format is allowed or not doesn't change
the behavior or the uploader

For me this is working. We talk about the field properties in the table, right.
Because if you choose the format in the uploader form field, this will convert the format of the thumb image. It is a DESTINATION format.
(But ONLY for the thumb. The original Image format stays unchanged)


krasy wrote:
thumb size definded x and y
nothing selected from: center, crop, fit
image has other proportions

I saw this also. This is because JImage works differently. It is a Joomla error.
I will convert that for keeping the x-y as external bounds. And NOT internal bounds. I don't know why is it coded that way.
Images have MANY options attributes and filters. Not all are working at the moment, I am finishing it and I will furshish a demo to learn how to use all features. about 15-20 different features in total. At the moment I am just trying to migrate the base.
Really sorry for this unstable version, you still can generate in stable 2.8.x
krasy wrote:
PS Have you found something in >>> file.php on line 2058, should I reset some configuration on my server ?

It was a bug, because with the new version, the attribs are now object, so there was a compaptibility layer missing.
Your fix was incorrect. It is a quite difficult part. Try again it should work.

To be continued.
Coding is now a piece of cake
The administrator has disabled public write access.

Recomended server configuration 22 Jul 2016 15:38 #14312

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
IMAGES
krasy wrote:
thumb size definded x and y
nothing selected from: center, crop, fit
image has other proportions
FIXED
krasy wrote:
center only or crop only - same result, crop?
FIXED
krasy wrote:
one dimension filled - no change
FIXED
krasy wrote:
one dimension + crop - co change
NORMAL : Crop is possible only when both sizes (x + y) are defined because the crop is a CUT when it oversize the bounds. Otherwise it determines automatically the missing or 'auto' value
krasy wrote:
when filled "Image title"
strange link text in on hoover box appear
FIXED (tooltip => false) Conflicts with modal, because both 'tooltips' and 'modal' uses the 'rel' attribute.
So you have to choose, or modal, or tooltip. You can keep the title, but it will appear as a conventional html title, not a tooltip.
krasy wrote:
modal preview: not sizing
NORMAL. Not handled yet. Any idea for achieving this ? Because I'd like the 'Squeezebox' to resize automatically, and not reading the image size in PHP, then sending the the modal (I would prefer 100% javascript)
krasy wrote:
modal preview: not working
It works for me. Very stable. Can you precise please ?
krasy wrote:
1:n images work!!
have no option to set thumb size, crop, center, fit
and modal gallery preview
No options in facts, because it is too complex for the builder, and because the N:m interface should also be able to instance more related fields, and so on. That's not the priority. The default size is 50x50. A mini thumb. The code is really clear, in the template to change that manually.

TOOLBARS
krasy wrote:
two toolbars on top and and on the bottom
duplicates the buttons everywhere
FIXED, but for the moment, the toolbars are identical. I will create in future some option in JDom for filtering the tasks for each toolbar.


FILES
krasy wrote:
when editing the existing image the default icon
is "Delete all images nad thums" the behavior is ok "Do not apply and changes"
Works for me. Wich PTL ?
krasy wrote:
Have you found something in >>> file.php on line 2058, should I reset some configuration on my server ?
FIXED, but differently that what you proposed.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.075 seconds

Get Started