Bug in 4.2.1 zip ??

Phoca Gallery - image gallery extension
AnnJ
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Sep 2015, 20:00

Re: Bug in 4.2.1 zip ??

Post by AnnJ »

I found the answer to the question in my previous message by looking at the successful installations on the other sites.

However, after following all of the instructions for an ftp installation, when, as the final step, I try to install com_phocagallery_ftp_install.zip
this is what I get (again, sorry it is in French)

Alerte
JInstaller: :Install: impossible de trouver un fichier d'initialisation XML Joomla!

Erreur
Impossible de trouver un pack d'installation

I suspect it is a Joomla problem but have found nothing to help on the Joomla forum.

Bye for now.
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Bug in 4.2.1 zip ??

Post by rbuelund »

This is what is said about the problem at the Joomla 3.4.4 forum: http://forum.joomla.org/viewtopic.php?f ... 9#p3329559
AnnJ
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Sep 2015, 20:00

Re: Bug in 4.2.1 zip ??

Post by AnnJ »

Thank you so much!
The only thing I hadn't tried was to install from web, and it worked.

What an intensive learning adventure -- and glad to "meet" you, rhuelund.
AnnJ
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Sep 2015, 20:00

Re: Bug in 4.2.1 zip ??

Post by AnnJ »

oops -- rejoiced too quickly.
Database tables do not exist.
Working on it....
Joomla considered the installation as an upgrade since I had not deleted the directories and files I had manually uploaded.
The install.utf8.sal file contained an error (duplicate primary key ... sorry I did not keep a copy of the error) so no tables were created.
I manually deleted the directories and files.
Then I installed from web again, and this time everything seems fine.
Once again thanks very much for your help, and I hope I don't have to ask for it again soon :)
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Bug in 4.2.1 zip ??

Post by rbuelund »

Actually I see that my version number for Phoca has been updated to 4.2.1 - so some files have been updated!! Something must be wrong with the install script ?? It stops at this error:

RuntimeException [500]
Copy file failed
.../libraries/joomla/filesystem/folder.php:148

143 }
144 else
145 {
146 if (!@copy($sfid, $dfid))
147 {
148 throw new RuntimeException('Copy file failed', -1);
149 }
150 }
151 break;
152 }
153 }

and this debug info:

16. JFolder::copy() ☰


.../libraries/joomla/filesystem/folder.php:125

120 switch (filetype($sfid))
121 {
122 case 'dir':
123 if ($file != '.' && $file != '..')
124 {
125 $ret = self::copy($sfid, $dfid, null, $force, $use_streams);
126
127 if ($ret !== true)
128 {
129 return $ret;
130 }




Arguments


src
string(74) "/home/landsyd/public_html/tmp/install_55f94b03c7fe7/media/css/custom"

dest
string(65) "/home/landsyd/public_html/media/com_phocagallery/css/custom"

path
NULL

force
bool TRUE

use_streams
bool FALSE
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug in 4.2.1 zip ??

Post by Jan »

Hi, not sure where to search the problem, it goes this way:

1) Extension manager installs the component
2) seems like uploading and extracting the package in tmp folders is OK
3) now extension manager tries with help of Joomla! Jfile and Jfolder methods create an folder (copy the folder) "custom" in media/com_phocagallery folder

Why it does now work, this should be the question on extension manager? Does it have rights (permissions, ownership) to do this?

Maybe some question on Joomla! core developers?

Try to change this code:
if (!@copy($sfid, $dfid))
to:
if (!copy($sfid, $dfid))

maybe you will get in browser or in errorLog file some error directly from php. :idea:

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Bug in 4.2.1 zip ??

Post by rbuelund »

Nope - did not change anything to remove the @ - same error and nothing in error_log

Rights are by the way 761 on all foldes in /media
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug in 4.2.1 zip ??

Post by Jan »

What happen when you add it to "777" (only for test, not recommended normally - you should test the "775" too)

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Bug in 4.2.1 zip ??

Post by rbuelund »

Well - here we have the problem. Changed /media folder recursively to permission 775 - now the component installs ?? But I have NOT touched anything in that folder regarding permissions - so how come there all of a sudden is a problem ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug in 4.2.1 zip ??

Post by Jan »

Hi, hmm, really no idea what could happen there :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply