back end images request password

Phoca Gallery - image gallery extension
User avatar
andrea76
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 14 Sep 2015, 12:31
Location: Italy
Contact:

back end images request password

Post by andrea76 »

Problem post migration Joomla 2.5.28 to 3.4.4
I had some problem during migration, at the end I rebuild my site with new installation,
but I recover my migrated database succesfully.
All part of site run correctly with last PHP version 5.5.29 but now when I'm trying to work into Phoca Gallery
when I open Images, the system request an account for "privacy"
Some permission or other is missing, but where? How can I restore policy of component?
Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: back end images request password

Post by Jan »

Hi, what you mean with "an account for "privacy""? Can you paste the exact message or screenshot?

Jan
If you find Phoca extensions useful, please support the project
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: back end images request password

Post by christine »

Hi andrea 76,

Is the response like this?: “You cannot access the private section of this site.”

If so, may be something went wrong during your migration with the assets table. Here an explanation about functions of the "assets table":
https://docs.joomla.org/Fixing_the_assets_table

It seems, you have to run sql queries in your database (phpMyAdmin). Such in this way:

Code: Select all

UPDATE `#_assets` SET `parent_id`=1 WHERE `parent_id`=0 AND id>1
UPDATE `#_assets` SET `parent_id`=0 WHERE `title` = 'Root Asset'
'#_assets' > of course with your "Prefix".
(The 'Root Asset' has to be 0)

Here also 1 Thread about: http://forum.joomla.org/viewtopic.php?f ... 1&start=60

Kind regards, Christine
User avatar
andrea76
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 14 Sep 2015, 12:31
Location: Italy
Contact:

Re: back end images request password

Post by andrea76 »

....zzz....zzz.... how many months!!! :o
New baby and my time is expired! But now I want to restart my project.
Thanks for reply!

I try to insert SQL strings but defect is
Image

when I open backend phoca images and also into frontend ...
I try delete and rebuild automatically categories and images, but nothing! :!:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9965
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: back end images request password

Post by Benno »

Hi,
your screenshot looks like a password protection via .htpasswd & .htaccess
So seek for this two files inside your joomla instalation via FTP. Especialy inside:
  • /images/
    /images/phocagallery/
or anywere else...
If you find this files rename them first (for testing) e.g.
from:

Code: Select all

.htaccess
to:

Code: Select all

htaccess.txt
and from:

Code: Select all

.htpasswd
to:

Code: Select all

htpasswd.txt
check if it works then. If yes, you can delete this two files.

Kind regards,
Benno
User avatar
andrea76
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 14 Sep 2015, 12:31
Location: Italy
Contact:

Re: back end images request password

Post by andrea76 »

Thanks for your reply.
Normally I use only .htaccess on site root, I try to disable .htaccess but nothing :x
I made a test with site configured standard:
no SEO, no SEF, no .htaccess .... recreate categories and images.... always password request! :evil:
I don't remember if I migrated site or new installation with manual import of phoca DB...
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: back end images request password

Post by christine »

Hi Andrea76,

I think, you have to differ between a) and b) explanation, see below.

Your URL mentioned on your screenshot does NOT exist. May be it exist "somewhere". The URL is "re-directed" or "new" to:

http://www.andrea76.com/J76/ > subdirectory: /J76

a)
andrea76 wrote:Normally I use only .htaccess on site root, I try to disable .htaccess but nothing
this belongs to (see your screenshot). The word "privacy" could also be another word. It's just a name.

http://www.htaccesstools.com/htaccess-authentication/

.htaccess / .htpasswd to protect your site.This will also inherit to all other subfolders. There are exceptions, but it's too much now.

b)
I made a test with site configured standard: no SEO, no SEF, no .htaccess
Above has nothing to do with your "privacy" problem. It belongs to:
https://www.norrnext.com/docs/joomla-tu ... -in-joomla

Your site (see above) do not have:

- administrator .htaccess (/administrator) protection > http://www.andrea76.com/J76/administrat ... joomla.xml
- there ist no .htaccess file (re-named htaccess.txt) for e.g. mod_rewrite (configuration-backend) see under b)
- and/or # Rewrite Base to > Rewrite Base resp. Rewrite Base / (if subfolder)
- On above URL there is no phocagallery. There are several generell "Test-" infos & links about Joomla.

Kind regards, Christine
User avatar
andrea76
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 14 Sep 2015, 12:31
Location: Italy
Contact:

back end images request password

Post by andrea76 »

Thanks but with this configuration the problem is the same.
Image
.htaccess on joomla root:

Code: Select all

RewriteEngine On
#RewriteBase /J76/

#
# Rules
#

RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
I'm not expert but I think that problem is something about users permissions post migration...

.........making test...............

:idea: mmmmmm this is a news: I have the same problem with All Videos Share!
I'm sure, the problem is porting DB from old site to new. :x
I have lost something about users permissions! :o
No components problem, but horrible DB! :!:
I don't want recreate all! :cry:
Thanks for all!

------------------------------------------------------ UPDATE ------------------------------------------------

Uninstall phocagallery e re-installa full package
Multiple uploads (automatic system) ... is crating categories and thumbs ...
No owner, no users and when select menu link for gallery ...... PASSWORD!!!
:evil: :evil: :evil: WHY?
http://www.andrea76.com/J76/gallery76.html
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: back end images request password

Post by christine »

Hi andrea76,
andrea76 wrote: ------------------------------------------------------ UPDATE ------------------------------------------------
Uninstall phocagallery e re-installa full package
Multiple uploads (automatic system) ... is crating categories and thumbs ...
No owner, no users and when select menu link for gallery ...... PASSWORD!!!
There is a .htaccess resp. htpasswd protection here:

http://www.andrea76.com/J76/images/phoc ... /webalbum/

> .../images/phocagallery/webalbum/

Kind regards, Christine
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: back end images request password

Post by christine »

Hi Andrea76,

sorry, hv lost your post. But copied latest infos:
You wrote: I have /web/htdocs/www.andrea76.com/home/J76/images/phocag ... /.htaccess

Code: Select all

AuthType Basic
AuthName "privacy"
AuthUserFile /web/htdocs/www.andrea76.com/home/J76/images/phocagallery/webalbum/.htpasswd
require valid-user
there is no: ..../home/ [error 404] ..... and if so, may be migration from an older Joomla version?
What else is "inside" from "home"? FTP
You wrote: ... and /web/htdocs/www.andrea76.com/home/J76/images/phocag ... /.htpasswd is empty
Check again:
folder: /web/htdocs/www.andrea76.com/J76/images/phocagallery/webalbum/
URL: http://www.andrea76.com/J76/images/phoc ... /webalbum/

Kind regards, Christine
Post Reply