Page 1 of 7

X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 16 Jul 2022, 03:34
by mjau-mjau
X3.31.0 Cart, Breadcrumbs and Files :lion_face:
This release includes a new cart plugin, breadcrumbs, Files gallery, bug fixes, PHP 8.1 compatibility and more.
photo.gallery/blog/x3-31-cart-files-breadcrumbs/



How to update?
See docs or simply navigate to X3 Panel > Tools > X3 Updates and click "update now".

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 03:46
by amateur56
I just bought files_gallery 2 weeks ago!
Will this have a problem with the one you've added into th2 x3 update?
Will it add or try to add another gallery etc, I'm confused.
How does this files gallery work, does it run from the admin or on its own like the bought one?
Guess I lucked out
George

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 04:38
by hejberlin
Thank you for the update. I recently noticed an error. I have blocked the image download. However, if the images are found via Google and called up directly, they can be downloaded without being blocked.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 06:48
by mjau-mjau
hejberlin wrote: Thank you for the update. I recently noticed an error. I have blocked the image download. However, if the images are found via Google and called up directly, they can be downloaded without being blocked.
I'm not 100% sure what you are asking for. The X3 setting "Block image downloads" will effectively block visitors from being able to right-click and choose "download ... " or "save as ...". It does NOT block the images from being visible and available on your website, in which case, Google may also find your images. It is not possible in X3 (or any other website) to 100% prevent people from downloading images that you have made available on public web pages.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 12:29
by metallissimus
Is it possible that the update overwrote my existing files configuration (in the same root/files as my X3 installation)?

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 14:06
by TAIFUN
Hi.
X3.31.0 not supported php 5.6.4?

https://www.photo.gallery/docs/setup/introduction/
PHP 5.3 or higher (PHP 7 recommended).
But after updating the photo gallery to X3.31.0, it started showing error "500". PHP version 7 does not have this problem.
If the gallery no longer supports php version 5 you have to fix the text on the page https://www.photo.gallery/docs/setup/introduction/

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 23:41
by mjau-mjau
metallissimus wrote: Is it possible that the update overwrote my existing files configuration (in the same root/files as my X3 installation)?
Not really, because the ZIP file that the updater uses only includes X3 application files, not /content/ or /config/, so it wouldn't be able to overwrite those.
https://www.photo.gallery/download/X3.3 ... e.flat.zip

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 18 Jul 2022, 23:43
by mjau-mjau
TAIFUN wrote:X3.31.0 not supported php 5.6.4?
Unfortunately, I messed up and added a few PHP7+ codes. Doesn't your hosting allow updating to PHP 7 or 8? PHP 7 was released in 2015 and PHP 5 was released in 2004!

I will fix the code so it is PHP5 compatible later today. Sorry for any inconvenience.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 00:58
by metallissimus
mjau-mjau wrote:
metallissimus wrote: Is it possible that the update overwrote my existing files configuration (in the same root/files as my X3 installation)?
Not really, because the ZIP file that the updater uses only includes X3 application files, not /content/ or /config/, so it wouldn't be able to overwrite those.
https://www.photo.gallery/download/X3.3 ... e.flat.zip
Ok, that's strange. The config file had a last modified date matching my update and everything was back to default. I hadn't manually edited the file for weeks before the update.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 01:28
by mjau-mjau
metallissimus wrote:The config file had a last modified date matching my update and everything was back to default.
When you say "back to default", what exactly does that mean? Default X3 is NO CONFIG, not even a config file. The x3_updater.php script doesn't do anything to any config as you would see in the code. Even the full install ZIP files don't contain a /config/config.user.json, so it wouldn't not be possible to "overwrite" anything. We didn't even update the x3_updater.php script since it's been used by many users in many updates, including this one. I'm struggling to see how this could be related to the update process.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 01:32
by mjau-mjau
TAIFUN wrote:X3.31.0 not supported php 5.6.4?
I have now updated X3 so it's PHP5 friendly. I didn't change the version number (X3.31.1), so if you need to FORCE-update, you would need to use URL /panel/?force_update.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 01:37
by metallissimus
mjau-mjau wrote:
metallissimus wrote:The config file had a last modified date matching my update and everything was back to default.
When you say "back to default", what exactly does that mean? Default X3 is NO CONFIG, not even a config file.
Misunderstanding. I am not talking about X3 config, but files app config. (Should have used the word "app" earlier to make things more clear, sorry.)

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 02:07
by mjau-mjau
metallissimus wrote:Misunderstanding. I am not talking about X3 config, but files app config. (Should have used the word "app" earlier to make things more clear, sorry.)
Right, that's another story then. Did you already have a folder /files/ before updating to X3 where this dir was included? Then it would likely overwrite all your existing files. I will need to make sure in next X3 release that updating X3 does not overwrite /files/_files/config/config.php. If you happen to have custom Files installations for other purposes, you should probably use a different folder name than /files/.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 02:08
by TAIFUN
mjau-mjau wrote:
TAIFUN wrote:X3.31.0 not supported php 5.6.4?
I have now updated X3 so it's PHP5 friendly. I didn't change the version number (X3.31.1), so if you need to FORCE-update, you would need to use URL /panel/?force_update.
Does not work. Ok, this is not a problem for me. I updated the php to php7 for domen of photo gallery.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 19 Jul 2022, 02:52
by metallissimus
mjau-mjau wrote: Did you already have a folder /files/ before updating to X3 where this dir was included?
Exactly. I'm glad the content wasn't also overwritten, that would have been really bad.

Naming the root folder of files app "files" is an obvious choice, why would I have named it differently?