ZenphotoCMS Forum
.xxx extension added to setup files - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: .xxx extension added to setup files (/thread-13558.html)



.xxx extension added to setup files - Krash - 2021-04-10

This has happened several times after upgrading 1.2.9 to 1.5.7. All files in /zp-core/setup/ have .xxx extension added to file name (class-setup.php.xxx). Requires uploading clean files and re-running upgrade to restore admin access. What's causing this?




.xxx extension added to setup files - acrylian - 2021-04-10

This is setup protection and occurs after setup has run. It does not require uploading of files: Please see here:
https://www.zenphoto.org/news/installation-and-upgrading/#--re-running-and-re-uploading-setup-files




.xxx extension added to setup files - Krash - 2021-04-11

How to login as admin if setup is disabled?

Any way to disable this feature?




.xxx extension added to setup files - fretzl - 2021-04-11

How to login as admin if setup is disabled?
Please see: https://www.zenphoto.org/news/login-and-password-problems/#----what-is-the-link-to-login-on-the-backend--
Any way to disable this feature?
There is no way to disable this feature




.xxx extension added to setup files - acrylian - 2021-04-11

How to login as admin if setup is disabled?

Not sure what you mean exactly but logging in has nothing to do with the setup files being disabled actually.




.xxx extension added to setup files - Krash - 2021-04-11

path to your installation/admin
path to your installation/zp-core/admin.php

Both links go to gallery front page, not login. Running Basic theme.




.xxx extension added to setup files - acrylian - 2021-04-12

path to your installation/admin

If that doesn't work you either don't have the htaccess file in place or modrewrite is not working

path to your installation/zp-core/admin.php

This should lead to a login form. please review your error logs.




.xxx extension added to setup files - Krash - 2021-04-13

There is no .htaccess in upgrade package /zenphoto-1.5.7/zp-core/. Found 'htaccess file version 1.2.8.0' I had saved a month ago, no idea from where. Uploaded to /zp-core, now /zp-core/admin.php works.




.xxx extension added to setup files - acrylian - 2021-04-14

There should be a htaccess template file within zp-core which setup would use to create the actual root .htaccess file from. And it is for sure there:
https://github.com/zenphoto/zenphoto/blob/master/zp-core/htaccess

If this for some reason didn't happen - sometimes setup failes to recognice that modrewrite is active as there is not really secure way to check that - you can just copy it to root and rename it. Change the rewrite base to your install's and/or re-run setup.

Thte htacces from 1.2.8.0 is outdated, current version is 1.4.12.




.xxx extension added to setup files - Krash - 2021-04-14

Ok, I've copied /zp-core/htaccess from upgrade package to /zp-core/.htaccess. There already was a /zp-core/htaccess, looks like upgrader copied it without renaming it. I upgraded directly from 1.2.9 to 1.5.7, there were a lot of errors but gallery seems to be working ok. Are there any problems I should look out for?




.xxx extension added to setup files - acrylian - 2021-04-14

Ok, I've copied /zp-core/htaccess from upgrade package to /zp-core/.htaccess.

You misunderstood. The .htaccess file must be in the root of your install. The backend does not use rewritten urls.
https://www.zenphoto.org/news/installation-and-upgrading/#--content-of-the-zenphoto-package




.xxx extension added to setup files - Krash - 2021-04-15

It was already in /photo root, it's now in /photo and /photo/zp-core. I get 404 at /photo/admin, login at /photo/zp-core/admin.php. Login is successful, so we're good. Thanks.




.xxx extension added to setup files - acrylian - 2021-04-17

There should be no .htaccess in photo/zp-core as the backend does not use modrewrite itself. Except the /admin URL which is handled internally and not directly via a htaccess file.