Problem opening galleries in Phoca Gallery in Joomla Module

Phoca Gallery modules - modules for Phoca Gallery extension
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Problem opening galleries in Phoca Gallery in Joomla Module

Post by cscj01 »

I am getting the following message whenever I open a gallery (category).

Code: Select all

Warning: Creating default object from empty value in /home4/cscj01/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 370
It occurs every time I open a different gallery. So, if I have opened 3 galleries, I have 3 identical messages.

This is from my Systems Administration panel of Joomla

Code: Select all

]PHP Built On 	Linux gator3132.hostgator.com 3.12.35.1418868451 #1 SMP Wed Dec 17 20:10:32 CST 2014 x86_64
Database Version 	5.5.42-37.1
Database Collation 	utf8_general_ci
PHP Version 	5.4.38
Web Server 	Apache
WebServer to PHP Interface 	cgi-fcgi
Joomla! Version 	Joomla! 2.5.28 Stable [ Ember ] 10-December-2014 15:00 GMT
Joomla! Platform Version 	Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent 	Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 
My Phoca Gallery component is 3.1.5

It has been a while since I have added any new photos, and I just noticed this a few days ago. I do know that when I logged in to Joomla, they upgraded me to the version i am now running. I am a novice when it comes to this, so I'm not sure where to look. Can you suggest what is happening and what I need to do to fix this? Thank you.
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by cscj01 »

Well, I decided to upgrade Joomla to 3.4. Unfortunately, something went wrong with my Phoca upgrade. I sucessfully upgraded Joomla, but had to use the FTP method to install Phoca Gallery. Now I get the following when I go to my homepage:

Code: Select all

Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically in /home4/cscj01/public_html/components/com_phocagallery/router.php on line 38

Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically in /home4/cscj01/public_html/libraries/cms/application/site.php on line 272

Strict Standards: Only variables should be assigned by reference in /home4/cscj01/public_html/components/com_phocagallery/router.php on line 38

Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically in /home4/cscj01/public_html/components/com_xmap/router.php on line 96

Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically in /home4/cscj01/public_html/libraries/cms/application/site.php on line 272

Strict Standards: Only variables should be assigned by reference in /home4/cscj01/public_html/components/com_xmap/router.php on line 96

Strict Standards: Only variables should be assigned by reference in /home4/cscj01/public_html/components/com_xmap/router.php on line 102

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 18

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 18

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 18

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 18

Warning: include_once(/home4/cscj01/public_htmlDStemplatesDSphoca_rheinDShelpersDSextension.php): failed to open stream: No such file or directory in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 18

Warning: include_once(): Failed opening '/home4/cscj01/public_htmlDStemplatesDSphoca_rheinDShelpersDSextension.php' for inclusion (include_path='.:/opt/php54/lib/php') in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 18

Fatal error: Class 'PhocaTemplateExtension' not found in /home4/cscj01/public_html/templates/phoca_rhein/html/mod_menu/default.php on line 19
If I click on Components>Phoca Gallery, I get a list of entries with no icons. If I click on Images or galleries, these are correct. Themes gives a warning. Many items I had before seem to be missing. I am at a loss here.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by Jan »

Hi, unfortunately, Phoca Rhein is not a Joomla! 3 template.

Added to feature request list (overwrite it for Joomla! 3)

Jan
If you find Phoca extensions useful, please support the project
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by cscj01 »

I understand about Phoca Rhein. I do not understand what you are suggesting when you say "overwrite it." How do I do that? I am a complete novice, so I am a little confused.

Let me ask a question. Could I completely delete Phoca Gallery and reinstall it? If so, what would be involved? I think I may have messed up more than just having an unsupported theme.

Thank you for any help you can provide.
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by cscj01 »

I changed my template. Now when I click on Galleries, I get the following messages:

Code: Select all

Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically in /home4/cscj01/public_html/components/com_phocagallery/router.php on line 38

Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically in /home4/cscj01/public_html/libraries/cms/application/site.php on line 272

Strict Standards: Only variables should be assigned by reference in /home4/cscj01/public_html/components/com_phocagallery/router.php on line 38

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/components/com_phocagallery/phocagallery.php on line 13

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/components/com_phocagallery/phocagallery.php on line 13

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/components/com_phocagallery/phocagallery.php on line 13

Notice: Use of undefined constant DS - assumed 'DS' in /home4/cscj01/public_html/components/com_phocagallery/phocagallery.php on line 13

Warning: require_once(/home4/cscj01/public_html/administratorDScomponentsDScom_phocagalleryDSlibrariesDSloader.php): failed to open stream: No such file or directory in /home4/cscj01/public_html/components/com_phocagallery/phocagallery.php on line 13

Fatal error: require_once(): Failed opening required '/home4/cscj01/public_html/administratorDScomponentsDScom_phocagalleryDSlibrariesDSloader.php' (include_path='.:/opt/php54/lib/php') in /home4/cscj01/public_html/components/com_phocagallery/phocagallery.php on line 13
I looked at phocagallery.php and loader.php (with the path names from the warning and fatal error above). phocagallery.php has comments at the beginning that refer to Joomla 1.5. Seems a little strange, but I'm not a PHP programmer. Other than that, I can't make heads or tails of what is going on.
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by cscj01 »

Okay, I am desperate. Here is what I plan to do. The worst case seems to be I would have to build my Phoca Gallery from scratch.

1) Backup my existing database;
2) Backup my phocagallery/images;
3) Uninstall Phoca gallery;
3) Reinstall Phoca gallery;
4) Reinstall my phocagallery/images;
4) Restore all phocagallery tables (or at least insert the existing records for those tables)

If I am missing something, please let me know.
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by cscj01 »

Okay, the previous entry worked.

Code: Select all

Okay, I am desperate. Here is what I plan to do. The worst case seems to be I would have to build my Phoca Gallery from scratch.

1) Backup my existing database;
2) Backup my phocagallery/images;
3) Uninstall Phoca gallery;
3) Reinstall Phoca gallery;
4) Reinstall my phocagallery/images;
4) Restore all phocagallery tables (or at least insert the existing records for those tables)

If I am missing something, please let me know.
I believe the other items are related to Xmap. I need to go to the Joomla forums to check that out. Is there a way to mark a thread as Solved?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9440
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by Benno »

Hi,
Is there a way to mark a thread as Solved?
Yes, it is.. :wink:

Kind regards,
Benno
cscj01
Phoca Member
Phoca Member
Posts: 21
Joined: 05 Jan 2012, 20:44

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by cscj01 »

Jan wrote:Hi, unfortunately, Phoca Rhein is not a Joomla! 3 template.

Added to feature request list (overwrite it for Joomla! 3)

Jan
Jan, in order to make Phoca Rhein Joomla! 3 compliant, just do the following:

In html/mod_menu/default.php, insert after //Submenu Feature the line if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);

Before

Code: Select all

//Submenu Feature
$app 		= JFactory::getApplication();
$template 	= $app->getTemplate();
include_once( JPATH_SITE.DS.'templates'.DS.$template.DS.'helpers'.DS.'extension.php' );
After

Code: Select all

//Submenu Feature
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
$app 		= JFactory::getApplication();
$template 	= $app->getTemplate();
include_once( JPATH_SITE.DS.'templates'.DS.$template.DS.'helpers'.DS.'extension.php' );
I wanted to use your template because it works so well for me, so I figured out why I was getting the error message. It was because Joomla! no longer supports DS. So I figured out how to correct it. I am not a PHP programmer, so there may be a better way to do it, but this works for me. Now I have my template back.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem opening galleries in Phoca Gallery in Joomla Mod

Post by Jan »

Hi, great to hear it, thank you for teh guide, I will set it and will release it as Joomla! 3 template.

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