thanks for all the great work, I really love the phoca gallery.
I have to migrate to Joomla 1.6 rather quickly, and I am therefore experimenting with phoca gallery 3.0.
The new "JUpgrade" component (v1.1.0) also copies the existing component tables in the migration process; therefore I thought I'd try the "Upgrade" option during phoca gallery installation process. However it doesn't yet seem to work; in category view, only the following warnings show up instead of the actual categories:
Code: Select all
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in [..]/libraries/joomla/database/database/mysql.php on line 317
Call Stack
# Time Memory Function Location
1 0.0020 710848 {main}( ) ../index.php:0
2 0.3921 7259472 JAdministrator->dispatch( ) ../index.php:47
3 0.4245 8516648 JComponentHelper::renderComponent( ) ../application.php:154
4 0.4669 9066536 require_once( '[..]/administrator/components/com_phocagallery/phocagallery.php' ) ../helper.php:152
5 0.5073 9677144 JController->execute( ) ../phocagallery.php:35
6 0.5073 9677280 PhocaGalleryCpController->display( ) ../controller.php:649
7 0.5073 9677280 JController->display( ) ../controller.php:184
8 0.5626 10863816 PhocaGalleryCpViewPhocaGalleryCs->display( ) ../controller.php:616
9 0.5657 10885672 JView->get( ) ../view.html.php:27
10 0.5657 10885976 JModelList->getPagination( ) ../view.php:365
11 0.5703 11166696 JModelList->getTotal( ) ../modellist.php:165
12 0.5818 11193216 JModel->_getListCount( ) ../modellist.php:213
13 0.5828 11169000 JDatabaseMySQL->getNumRows( ) ../model.php:268
14 0.5828 11169240 mysql_num_rows ( ) ../mysql.php:317
( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in [..]/libraries/joomla/database/database/mysql.php on line 317
Call Stack
# Time Memory Function Location
1 0.0020 710848 {main}( ) ../index.php:0
2 0.3921 7259472 JAdministrator->dispatch( ) ../index.php:47
3 0.4245 8516648 JComponentHelper::renderComponent( ) ../application.php:154
4 0.4669 9066536 require_once( '[..]/administrator/components/com_phocagallery/phocagallery.php' ) ../helper.php:152
5 0.5073 9677144 JController->execute( ) ../phocagallery.php:35
6 0.5073 9677280 PhocaGalleryCpController->display( ) ../controller.php:649
7 0.5073 9677280 JController->display( ) ../controller.php:184
8 0.5626 10863816 PhocaGalleryCpViewPhocaGalleryCs->display( ) ../controller.php:616
9 0.5657 10885672 JView->get( ) ../view.html.php:27
10 0.5657 10885976 JModelList->getPagination( ) ../view.php:365
11 0.5837 11169032 JModelList->getstart( ) ../modellist.php:165
12 0.5839 11169416 JModelList->getTotal( ) ../modellist.php:244
13 0.5843 11170552 JModel->_getListCount( ) ../modellist.php:213
14 0.5852 11170600 JDatabaseMySQL->getNumRows( ) ../model.php:268
15 0.5852 11170840 mysql_num_rows ( ) ../mysql.php:317Code: Select all
( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in [..]/libraries/joomla/database/database/mysql.php on line 317
Call Stack
# Function Location
1 {main}( ) ../index.php:0
2 JAdministrator->dispatch( ) ../index.php:47
3 JComponentHelper::renderComponent( ) ../application.php:154
4 require_once( '[..]/administrator/components/com_phocagallery/phocagallery.php' ) ../helper.php:152
5 JController->execute( ) ../phocagallery.php:35
6 PhocaGalleryCpController->display( ) ../controller.php:649
7 JController->display( ) ../controller.php:184
8 PhocaGalleryCpViewPhocaGalleryImgs->display( ) ../controller.php:616
9 JView->get( ) ../view.html.php:28
10 JModelList->getItems( ) ../view.php:365
11 JModelList->getstart( ) ../modellist.php:118
12 JModelList->getTotal( ) ../modellist.php:244
13 JModel->_getListCount( ) ../modellist.php:213
14 JDatabaseMySQL->getNumRows( ) ../model.php:268
15 mysql_num_rows ( ) ../mysql.php:317
( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in [..]/libraries/joomla/database/database/mysql.php on line 317
Call Stack
# Function Location
1 {main}( ) ../index.php:0
2 JAdministrator->dispatch( ) ../index.php:47
3 JComponentHelper::renderComponent( ) ../application.php:154
4 require_once( '[..]/administrator/components/com_phocagallery/phocagallery.php' ) ../helper.php:152
5 JController->execute( ) ../phocagallery.php:35
6 PhocaGalleryCpController->display( ) ../controller.php:649
7 JController->display( ) ../controller.php:184
8 PhocaGalleryCpViewPhocaGalleryImgs->display( ) ../controller.php:616
9 JView->get( ) ../view.html.php:29
10 JModelList->getPagination( ) ../view.php:365
11 JModelList->getTotal( ) ../modellist.php:165
12 JModel->_getListCount( ) ../modellist.php:213
13 JDatabaseMySQL->getNumRows( ) ../model.php:268
14 mysql_num_rows ( ) ../mysql.php:317
( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in [..]/libraries/joomla/database/database/mysql.php on line 317
Call Stack
# Function Location
1 {main}( ) ../index.php:0
2 JAdministrator->dispatch( ) ../index.php:47
3 JComponentHelper::renderComponent( ) ../application.php:154
4 require_once( '[..]/administrator/components/com_phocagallery/phocagallery.php' ) ../helper.php:152
5 JController->execute( ) ../phocagallery.php:35
6 PhocaGalleryCpController->display( ) ../controller.php:649
7 JController->display( ) ../controller.php:184
8 PhocaGalleryCpViewPhocaGalleryImgs->display( ) ../controller.php:616
9 JView->get( ) ../view.html.php:29
10 JModelList->getPagination( ) ../view.php:365
11 JModelList->getstart( ) ../modellist.php:165
12 JModelList->getTotal( ) ../modellist.php:244
13 JModel->_getListCount( ) ../modellist.php:213
14 JDatabaseMySQL->getNumRows( ) ../model.php:268
15 mysql_num_rows ( ) ../mysql.php:317My guess would be that the database doesn't get upgraded properly? Because when I "Install" the component and copy the records over from the old tables manually, it seems to work quite fine.
Maybe there's already a quick solution for it? If not I'll probably will try to take a look into it how it can be fixed, since if that worked, it would be a really cool thing in my eyes.


