PDA

Zobacz pełną wersję : Problem z Phoca Gallery_v3.2.1



jacktak
03-09-2012, 17:48
Po zainstalowaniu komponentu Phoca Gallery_v3.2.1 i spolonizowania komponentu do wersji joomli 2,5 i wejściu w dział KATEGORIĘ mam komunikaty o błędzie następującej treści. Zrzut ekranu poniżej !!!!
Czy ktoś miał z Phoca Gallery podobne przejścia?
5804
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/jacktak/public_html/libraries/joomla/database/database/mysqli.php on line 263

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/jacktak/public_html/libraries/joomla/database/database/mysqli.php on line 263

fatboyxxl
16-09-2012, 21:11
Witam

Mam podobny problem i nie moge zabardzo znaleść rozwiazania:

"Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/ogarpolski/domains/ogarpolski.com/public_html/libraries/joomla/database/database/mysqli.php on line 263

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/ogarpolski/domains/ogarpolski.com/public_html/libraries/joomla/database/database/mysqli.php on line 263"

Podobnie wysypuje sie książka gości

Pozdrawiam

Azot
18-09-2012, 20:36
Czy ten błąd pojawił się wam po aktualizacji Joomla!, komponentu czy innej operacji?

fatboyxxl
20-09-2012, 21:33
Ten błąd pojawia się po instalacji PG

Wcześniej nie instalowałem tej galerii więc się nie wypowiem czy i jak działała na wcześniejszej Jommli, obecna 2.5.7

EDIT
Miałem trochę czasu i pogrzebałem, może ktoś próbował tego sposobu. Ewentualnie jak by miał ktoś możliwość spolszczenia tego to był bym wdzięczny
http://www.phoca.cz/documents/2-phoca-gallery-component/203-installation-problem-solving

Phoca Gallery tables were not created while installing

Mostly you get the following system message "Error while Saving Phoca Gallery Categories" or this PHP error message: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource ... while using Phoca Gallery.

Getting this system message or php error message is caused by not installed Phoca Gallery tables in the Joomla!. Please enable debug mode in your Joomla! administration site (Global Configuration) and take a look at your database (e.g. via phpMyAdmin) to see if the installation script created Phoca Gallery tables correctly. If not, you have to create them manually. The SQL queries, which install Phoca Gallery tables into your database, are stored in install.bak file. You will find this file in the root of Phoca Gallery component ZIP package.



If you are installing Phoca Gallery,

just copy all SQL queries (except ALTER TABLE ... queries) and run them in e.g. phpMyAdmin. But beware, because the names of tables are prepared for system installation, so they contain '#__' instead of your table prefix, you have to rename them, e.g.:
#__phocagallery to TablePrefix_phocagallery

TablePrefix is the prefix you selected while installing Joomla! CMS (it is mostly 'jos_' and it should differentiate the Joomla! tables from other tables used in your database). Make sure that you delete #_ at the start of the line; you only need one _ {underscore}. Do this for all queries.



If you are upgrading Phoca Gallery,

and you get problems with not created tables or columns, ou need to open the install.bak file which you can find in root of the installation ZIP file and compare it with your database. E.g. with help of phpMyAdmin tool.

In install.bak file you can see which new tables and columns were added in previous versions. So if some table doesn't exists in your database and you can see the SQL query for this table in install.bak file, just run this query (query for creating one table) so this table will be added into your database (Don't run all the queries as they can overwrite your current data in your site, which means deleting all your data).

You need to check the upgrade sql queries too (upgrading columns in tables). If you compare the table in your database with SQL query of the install.bak file and you will recognize that some columns don't exists in your tables, you need to run the SQL upgrade queries (which are prepared at the end of the install.bak file). After copying and pasting the queries into phpMyAdmin you need to remove comments characters (-- at the begin of the line) and you need to modify the prefixes.

Upgrading the tables:

Because the names of tables are prepared for system installation, so they contain '#__' instead of your table prefix, you have to rename them:
#__phocagallery to TablePrefix_phocagallery
#__phocagallery_categories to TablePrefix_phocagallery_categories, etc.

TablePrefix is the prefix you selected while installing Joomla! CMS (it is mostly 'jos_' and it should differentiate the Joomla! tables from other tables used in your database). Make sure that you delete #_ at the start of the line; you only need one _ {underscore}.

Upgrading the columns:

If you have all tables in your database (e.g. you are upgrading from 2.1.0 to 2.2.0) check the columns of your tables. E.g. in Phoca Gallery version 2.2.0 there are new colums: extlink1, extlink2 and these should be added into table: #__phocagallery. In case you are upgrading e.g. from 2.1.0 to 2.2.0 and you got some error message while automatically upgrading of Phoca Gallery tables (tables and columns not created, check the #_phocagallery table and if extlink1 or extlink2 columns aren't included, then run the SQL query for 2.2.0 version:

ALTER TABLE `#__phocagallery` ADD `extlink1` text NOT NULL AFTER `params` ;
ALTER TABLE `#__phocagallery` ADD `extlink2` text NOT NULL AFTER `extlink1` ;

If you're upgrading to 2.2.2 then run also the SQL query for the 2.2.2 version:

ALTER TABLE `#__phocagallery_categories` ADD `date` datetime NOT NULL default '0000-00-00 00:00:00' AFTER `description` ;

You need to check all upgrad SQL queries which were added to current version and run them if the columns don't exist in Phoca Gallery tables.

Azot
22-09-2012, 13:05
Tabele Phoca Gallery, nie zostały utworzone podczas instalacji




Ten komunikat systemowy o błędzie lub jest spowodowany nie utworzeniem wymaganych tabeli w bazie danych Phoca Gallery. Proszę włączyć tryb debugowania w Joomla! w globalnej konfiguracji i sprawdzić bazę danych (np. poprzez phpMyAdmin), aby sprawdzić, czy skrypt instalacyjny stworzony tabele Phoca Gallery poprawnie. Jeśli nie, to trzeba je stworzyć ręcznie. Tabele są tworzone i przechowywane w pliku install.bak w dodatku Phoca gallery. Znajdziesz ten plik w katalogu głównym pakietu .zip Phoca Gallery.




Jeśli instalujesz Phoca Gallery,


Wystarczy skopiować wszystkie zapytania SQL (z wyjątkiem ALTER TABLE ... queries) i uruchamić je w np. phpMyAdmin. Ale uwaga, ponieważ nazwy tabel są przygotowane do instalacji systemu, więc mogą one zawierać '# __' zamiast własnego prefiksu tabeli, trzeba zmienić ich nazwę, np.:
# __phocagallery do TablePrefix_phocagallery - w zależności od prefiksu jaki używany jest w Twojej bazie danych


TablePrefix jest to prefiks wybrany podczas instalacji Joomla! CMS (najczęściej jest to "jos_" ).

fatboyxxl
24-09-2012, 08:54
Dzięki kolego Azot, nie chciałem kaleczyć tłumaczenia.
Ogólnie pomaga na wszystkie problemy z bazą danych w/w post.
Jest kilka tematów na forum nie rozwiązanych dotyczących Phoca Gallery w których pomaga ręczne dodanie wpisów do bazy.