some errors after installation

Phoca Gallery - image gallery extension
Manos
Phoca Member
Phoca Member
Posts: 22
Joined: 30 Jan 2009, 16:27

some errors after installation

Post by Manos »

I have Joomla 1.5.8 and I've just installed latest version of Phoca Gallery through Extensions/Install-Uninstall.

Afterwards I went to FTP components folder (then subfolder of Phoca Gallery) and set all permissions to files and folders to 777.


Now, when I go to Phoca Download Control Panel -> Files I see these errors
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/gameworld.gr/www/libraries/joomla/database/database/mysql.php on line 342

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/gameworld.gr/www/libraries/joomla/database/database/mysql.php on line 342

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/gameworld.gr/www/administrator/components/com_phocadownload/helpers/phocadownload.php on line 22

Warning: Invalid argument supplied for foreach() in /home/gameworld.gr/www/libraries/joomla/html/html/select.php on line 68

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/gameworld.gr/www/administrator/components/com_phocadownload/helpers/phocadownload.php on line 34

Warning: Invalid argument supplied for foreach() in /home/gameworld.gr/www/libraries/joomla/html/html/select.php on line 68
Any help?

Congrats for your work. I've seen your application in various sites and it works great!
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: some errors after installation

Post by caro84g »

Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Manos
Phoca Member
Phoca Member
Posts: 22
Joined: 30 Jan 2009, 16:27

Re: some errors after installation

Post by Manos »

Ok, so now, after installing Phoca Gallery, I will have to copy-paste these sql commands to phpmyadmin?

Be careful and check if I'm posting them correctly. There is only one ALTER TABLE command at the end of install.bak document which (as tutorial says) I won't have to copy. Do i have to copy the rest commands like "NOT NULL" etc?
DROP TABLE IF EXISTS `#__phocadownload_categories`;
CREATE TABLE `#__phocadownload_categories` (

DROP TABLE IF EXISTS `#__phocadownload_sections`;
CREATE TABLE `#__phocadownload_sections` (

DROP TABLE IF EXISTS `#__phocadownload`;
CREATE TABLE `#__phocadownload` (

DROP TABLE IF EXISTS `#__phocadownload_settings`;
CREATE TABLE `#__phocadownload_settings` (

INSERT INTO `#__phocadownload_settings` VALUES (null, 'download_folder', 'phocadownload','', 'text');
INSERT INTO `#__phocadownload_settings` VALUES (null, 'allowed_file_types', '{hqx=application/mac-binhex40}

INSERT INTO `#__phocadownload_settings` VALUES (null, 'disallowed_file_types', '','', 'textarea');
INSERT INTO `#__phocadownload_settings` VALUES (null, 'upload_maxsize', '3000000','', 'text');
INSERT INTO `#__phocadownload_settings` VALUES (null, 'enable_flash', 1,'{0=No}{1=Yes}', 'select');

DROP TABLE IF EXISTS `#__phocadownload_user_stat`;
CREATE TABLE `#__phocadownload_user_stat` (

INSERT INTO `#__phocadownload_settings` VALUES (null, 'enable_user_statistics', 1,'{0=No}{1=Yes}', 'select');
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: some errors after installation

Post by caro84g »

Hi,

as far as I can read, you're creating tables for Phoca Download. Not for Phoca Gallery.

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Manos
Phoca Member
Phoca Member
Posts: 22
Joined: 30 Jan 2009, 16:27

Re: some errors after installation

Post by Manos »

Aaah, sorry! I've downloaded "Phoca Download" instead of "Phoca Gallery" (which I wanted). Sorry! :P
Post Reply