RSGallery2 Support Forums

RSgallery2 support forums => RSgallery2 bugs & problems => Topic started by: JULIANA SALES on February 25, 2008, 07:24:45 pm



Title: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: JULIANA SALES on February 25, 2008, 07:24:45 pm
Hi,


I install RSgallery2 recently. The version is 1.14.3 (SVN 649) but I am having trouble with to add new template. The error message is following:


"Warning: import(/home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/joomla/installer/helper.php) [function.import]: failed to open stream: No such file or directory in /home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import() [function.include]: Failed opening '/home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/joomla/installer/helper.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import(/home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/domit/xml_domit_lite_include.php) [function.import]: failed to open stream: No such file or directory in /home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import() [function.include]: Failed opening '/home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/domit/xml_domit_lite_include.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/veludo/public_html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Fatal error: Call to a member function on a non-object in /home/veludo/public_html/administrator/components/com_rsgallery2/options/templateManager/helpers/JInstallerRSGTemplate.php on line 49


Please, Help me!!!
 ???


Title: Re: Adding a new template
Post by: Jon on February 26, 2008, 12:38:37 am
Ditto:

Am running 1.14.3 on Joomla! 1.0.13

Code:
Warning: import(.../html/components/com_rsgallery2/lib/j15backport/libraries/joomla/installer/helper.php): failed to open stream: No such file or directory in .../html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import(.../html/components/com_rsgallery2/lib/j15backport/libraries/joomla/installer/helper.php): failed to open stream: No such file or directory in .../html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import(): Failed opening '/.../html/components/com_rsgallery2/lib/j15backport/libraries/joomla/installer/helper.php' for inclusion (include_path='.:/usr/local/lib/php') in .../html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import(.../html/components/com_rsgallery2/lib/j15backport/libraries/domit/xml_domit_lite_include.php): failed to open stream: No such file or directory in .../html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import(.../html/components/com_rsgallery2/lib/j15backport/libraries/domit/xml_domit_lite_include.php): failed to open stream: No such file or directory in .../html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Warning: import(): Failed opening '.../html/components/com_rsgallery2/lib/j15backport/libraries/domit/xml_domit_lite_include.php' for inclusion (include_path='.:/usr/local/lib/php') in .../html/components/com_rsgallery2/lib/j15backport/libraries/loader.php on line 83

Fatal error: Call to a member function on a non-object in .../html/administrator/components/com_rsgallery2/options/templateManager/helpers/JInstallerRSGTemplate.php on line 49


Title: Re: Adding a new template
Post by: Brooke on February 26, 2008, 02:26:51 am
I am getting that same error message... can anyone help?


Title: Re: Adding a new template
Post by: Jon on February 26, 2008, 09:47:52 am
We'll need help from the azrul RSgallery2 (oops, was working on a JomComment / RSGallery2 issue yesterday with azrul!) team here... We need a copy of helper.php on our site.   It's missing from my installation.

Code:
components/com_rsgallery2/lib/j15backport/libraries/joomla/installer/helper.php

There are six other "helper.php" files in the installation, but I suspect we need an InstallerHelper class here.


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jon on February 26, 2008, 10:01:31 am
May be deeper than a simple file missing.   Is loader.php trying to bring in the wrong file path?


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 10:05:17 am
Can someone install http://rsgallery2.net/nightly/legacy_branches/com_rsgallery2_legacy_importbug.zip  and try installing a template and paste back the full output in a code block?


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jon on February 26, 2008, 10:07:56 am
will give it a try....   Did you mean for this to look like a full install?  Or are there just a few files I can move?   I don't have time right now to do an install.  (GoDaddy!)


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 10:18:04 am
Yes, but the only changed file is lib/j15backport/libraries/loader.php


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jon on February 26, 2008, 10:24:57 am
I have a JObject exception, want me to post it here?  Or do we have PM?


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jon on February 26, 2008, 10:31:49 am
Jonah, I sent it to you via PM.    Not sure why installer.helper is trying to load, either.   I'm not so familiar with your code but I'm suspecting a second order bug...

Jon


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Brooke on February 26, 2008, 12:10:00 pm
here's what I got...

Code:
jexception Object
(
    [level] => 1
    [code] => 1
    [message] => Why is this file being included???
    [info] =>
    [file] =>
    [line] => 0
    [function] =>
    [class] =>
    [type] =>
    [args] =>
    [backtrace] => Array
        (
            [0] => Array
                (
                    [function] => __construct
                    [class] => jexception
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1
                            [1] => 1
                            [2] => Why is this file being included???
                            [3] =>
                            [4] => 1
                        )

                )

            [1] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/components/com_rsgallery2/lib/j15backport/libraries/joomla/base/object.php
                    [line] => 49
                    [function] => call_user_func_array
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => jexception Object
                                        (
                                            [level] => 1
                                            [code] => 1
                                            [message] => Why is this file being included???
                                            [info] =>
                                            [file] =>
                                            [line] => 0
                                            [function] =>
                                            [class] =>
                                            [type] =>
                                            [args] =>
                                            [backtrace] => Array
 *RECURSION*
                                            [_errors] => Array
                                                (
                                                )

                                        )

                                    [1] => __construct
                                )

                            [1] => Array
                                (
                                    [0] => 1
                                    [1] => 1
                                    [2] => Why is this file being included???
                                    [3] =>
                                    [4] => 1
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/components/com_rsgallery2/lib/j15backport/libraries/joomla/utilities/error.php
                    [line] => 139
                    [function] => jobject
                    [class] => jexception
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1
                            [1] => 1
                            [2] => Why is this file being included???
                            [3] =>
                            [4] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/components/com_rsgallery2/lib/j15backport/libraries/joomla/utilities/error.php
                    [line] => 174
                    [function] => raise
                    [class] => jerror
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 1
                            [1] => 1
                            [2] => Why is this file being included???
                            [3] =>
                            [4] => 1
                        )

                )

            [4] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/components/com_rsgallery2/lib/j15backport/libraries/loader.php
                    [line] => 84
                    [function] => raiseerror
                    [class] => jerror
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 1
                            [1] => Why is this file being included???
                        )

                )

            [5] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/components/com_rsgallery2/lib/j15backport/libraries/loader.php
                    [line] => 103
                    [function] => import
                    [class] => jloader
                    [type] => ::
                    [args] => Array
                        (
                            [0] => joomla.installer.helper
                            [1] =>
                            [2] => libraries.
                        )

                )

            [6] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/administrator/components/com_rsgallery2/options/templateManager/controller.php
                    [line] => 762
                    [function] => jimport
                    [args] => Array
                        (
                            [0] => joomla.installer.helper
                        )

                )

            [7] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/administrator/components/com_rsgallery2/options/templateManager/controller.php
                    [line] => 636
                    [function] => _getpackagefromupload
                    [class] => templatescontroller
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [8] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/administrator/components/com_rsgallery2/options/templateManager/admin.templates.php
                    [line] => 107
                    [function] => doinstall
                    [class] => templatescontroller
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [9] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/administrator/components/com_rsgallery2/admin.rsgallery2.php
                    [line] => 60
                    [args] => Array
                        (
                            [0] => /home/u4/skywalkerjones/html/administrator/components/com_rsgallery2/options/templateManager/admin.templates.php
                        )

                    [function] => require_once
                )

            [10] => Array
                (
                    [file] => /home/u4/skywalkerjones/html/administrator/index2.php
                    [line] => 69
                    [args] => Array
                        (
                            [0] => /home/u4/skywalkerjones/html/administrator/components/com_rsgallery2/admin.rsgallery2.php
                        )

                    [function] => require_once
                )

        )

    [_errors] => Array
        (
        )

)
[/code][/code]


Title: Re: [INFO REQ] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 12:14:22 pm
Thanks for the feedback guys, we'll have this one wrapped up soon.


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 01:10:23 pm
Should be fixed in r667.  Let me know!  try the latest RSG2 Nightly from http://rsgallery2.net/nightly/

Jon, changed files are:

options/templateManager/controller.php
lib/j15backport/libraries/joomla/factory.php


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jon on February 26, 2008, 01:17:41 pm
Hope I didn't foul something else up in my site.   I see this, now.

Code:
Fatal error: Call to a member function on a non-object in /home/content/m/i/s/mistolpatch/html/administrator/components/com_rsgallery2/options/templateManager/helpers/JInstallerRSGTemplate.php on line 49


*** Update:   I just reinstalled the build 669 package, same error.  Phew, thought I might have done something while I was nosing around controller.php .

I'm finding updates aren't really a problem.  Just uninstall / install and paste in the errant "INSERT INTO" statement into phpmysqladmin.


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 02:00:32 pm
And this is when installing a template right?

I was unable to reproduce the original error and I can't reproduce this one.  This is very odd.  What PHP version is everyone using here?  Jon, can you briefly describe what actions you take to reproduce this error?


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Tom Puchner on February 26, 2008, 02:03:12 pm
Hi Jonah,
I originally posted in http://rsgallery2.net/component/option,com_smf/Itemid,14/topic,11842.0 - changed to this thread

I'm trying to install micromacro 1.7 but it doesn't matter - same problem with any template I'm trying to install.

By the way, when I first tried to install micromacro 1.7 I got the message "success" but it didn't show up in the rsgallery2 template manager. Now I found it next to my Joomla! templates...


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 02:08:09 pm
Hi Tom,

Upgrade to the latest nightly build.

Then install the microMacro template that is linked to at http://rsgallery2.net/content/view/92/62/

If you still have issues, include full details.


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jon on February 26, 2008, 02:09:30 pm
Jonah,

Steps:
1)  Log in to site as super-admin
2)  Components/RSgallery2
3)  Template Manager -> Install
4)  Browse -- I'm picking up rsg2_superclean_0.5.zip  (just downloaded yesterday)
5)  Upload file and Install
6)  White screen with this error.  (The one I included above, repeated here since I see the thread split pages.)   This happens in about 3 or 4 seconds, it's rather quick.

Code:
Fatal error: Call to a member function on a non-object in /home/content/m/i/s/mistolpatch/html/administrator/components/com_rsgallery2/options/templateManager/helpers/JInstallerRSGTemplate.php on line 49

I'll PM you with backend access, if you want to check something out.

Am running PHP 4.3.11 on this site.   MySQL 5.0 (Client API version 5.0.18)

Joomla 1.0.13.


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Tom Puchner on February 26, 2008, 02:19:20 pm
Just installed com_rsgallery2_legacy._r669.zip
Then tried to install template rsg2_micromacro_1.7.zip

Error message:
Fatal error: Call to a member function on a non-object in /kunden/118886_1180/webseiten/joomla/administrator/components/com_rsgallery2/options/templateManager/helpers/JInstallerRSGTemplate.php on line 49


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Brooke on February 26, 2008, 03:42:23 pm
i'm using php 4.4.7


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jonah on February 26, 2008, 04:36:57 pm
must be a php4 thing then.  i should have a fix tomorrow for you guys.


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Brooke on February 29, 2008, 06:10:10 pm
just wondering if there was a fix yet.
thanks!
Brooke


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jonah on March 06, 2008, 11:33:48 am
Ugh, sorry guys, I've been really busy.

As a temporary measure, just unzip the template zip file in components/com_rsgallery2/templates  that's all you need to do to manual install it.

i will reply again here when there is a fix for you all to try.  thanks for your patience!


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jon on March 06, 2008, 03:57:51 pm
That didn't work for superclean.  (1) the folder names didn't quite match, easy enough to fix.  That done, (2)

Code:
Warning: main(/...components/com_rsgallery2/templates/superclean/display.class.php): failed to open stream: No such file or directory in /.../components/com_rsgallery2/templates/rsg2_superclean_05folder/index.php on line 14

Fatal error: main(): Failed opening required '/.../components/com_rsgallery2/templates/superclean/display.class.php' (include_path='.:/usr/local/lib/php') in /.../components/com_rsgallery2/templates/rsg2_superclean_05folder/index.php on line 14

superclean was looking for the folder rsg2_superclean_05folder, but the path for display.class.php is simply superclean.


Similar errors with micromacro.


Title: Re: [PENDING] Error installing a template. helper class missing?
Post by: Jonah on March 07, 2008, 06:06:26 pm
Ya, the folder names should just be the simple name of the template; superclean or micromacro, nothing else.  Try it again, it should work.


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Tom Puchner on March 09, 2008, 01:36:18 pm
Works fine for me, thanks  ;D


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Jon on March 10, 2008, 10:25:18 pm
Yep, that does the trick.

Although superclean is rather strange in that the image appears behind the thumbnails!


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Andy on March 22, 2008, 10:45:45 am
Getting this error message when trying to upload templates
Fatal error: Call to undefined function: getclientinfo() in /share/storage/01/fr/frizzell/nmids/administrator/components/com_rsgallery2/options/com_installer/models/templates.php on line 55


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Andy on March 25, 2008, 03:32:00 am
Okay, just manually installed templates and fixed permissions on subsequent directories using Mac OSX terminal in telnet mode but still no joy. same errors appearing.

FYI:
System information from my Joomla set up.

PHP Built on:    Linux ccgi03.plus.net 2.6.11-plusnet-cgi #15 SMP Wed May 25 18:26:16 BST 2005 i686
Database Version:    4.1.11-Debian_4sarge7-log
Database Collation:    utf8_general_ci
PHP Version:    4.3.10
Web Server:    Apache
Web Server to PHP interface:    cgi
Joomla! Version:    Joomla! 1.5.1 Production/Stable [ Seenu ] 8-February-2008 22:00 GMT
User Agent:    Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13

Hope that is of use to you. Should you require a test bed for nightly builds then I'm willing to give it a try. this web site is not a production site just yet.
To see it go to http://ccgi.frizzell.plus.com/nmids/ Click test gallery to see front end error 404 message.

RSGallery2 SVN is 720



Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Andy on March 25, 2008, 11:47:31 am
Okay here's my latest info on what I've been doing.

Had an hour to spare so uninstalled SVN 720 then uploaded 1.12.2 alpha. Hey presto gallery displayed until I clicked one of the thumbnails and an error 404 came up.

repeated uninstall and attempted to upload 1.14.3 and nothing, wouldn't upload and got time out error.
Ditto with an earlier 'nightly build' Same timeout error.

Decided to re upload SVN 720 Nightly build. All installed, however, I got this error 500 message:-

500 - An error has occurred

JDatabaseMySQL::query: 1060 - Duplicate column name 'user_id' SQL=ALTER TABLE `nmids_rsgallery2_comments` ADD `user_id` int(11) NOT NULL AFTER `id`

Call stack
#   Function   Location
1   jadministrator->dispatch()   /share/storage/01/fr/frizzell/nmids/administrator/index.php:67
2   jcomponenthelper::rendercomponent()   /share/storage/01/fr/frizzell/nmids/administrator/includes/application.php:130
3   require_once()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/application/component/helper.php:162
4   installercontroller->execute()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_installer/admin.installer.php:44
5   installercontroller->doinstall()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/application/component/controller.php:239
6   installermodelinstall->install()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_installer/controller.php:67
7   jinstaller->install()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_installer/models/install.php:86
8   jinstallercomponent->install()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/installer/installer.php:333
9   com_install()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/installer/adapters/component.php:261
10   migrate_com_rsgallery->migrate()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_rsgallery2/install.rsgallery2.php:38
11   migrate_com_rsgallery->handlesqlfile()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_rsgallery2/includes/install.class.php:2117
12   migrate_com_rsgallery->runsqlfile()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_rsgallery2/includes/install.class.php:1144
13   jdatabasemysql->query()   /share/storage/01/fr/frizzell/nmids/administrator/components/com_rsgallery2/includes/install.class.php:1175
14   jerror::raiseerror()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/database/database/mysql.php:229
15   jerror::raise()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/error/error.php:173
16   jexception->jobject()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/error/error.php:138
17   call_user_func_array()   /share/storage/01/fr/frizzell/nmids/libraries/joomla/base/object.php:49
18   jexception->__construct()   

So back to the drawing board I guess. STATUS QUO here, hope this is useful. Delete it if it's not.

Andy.
 ::)


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Andy on March 28, 2008, 04:08:37 am
()
It's gone very quiet here, Is eveyone on vacation?


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Andy on April 17, 2008, 04:45:38 am
Just changed to com_rsgallery2._svn_rev_720.zip

Still getting this error message:-
HTTP/1.1 Template tables does not exist.
Please select an existing template in the Template Manager. Date: Thu, 17 Apr 2008 09:40:04 GMT Server: Apache X-Powered-By: PHP/4.3.10 P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM" Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Last-Modified: Thu, 17 Apr 2008 09:40:05 GMT Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8 608

ISP still using php4 }:(



Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: Andy on April 17, 2008, 04:52:13 am
When I click on templates in RS Gallery 2 I get this error:-

Fatal error: Call to undefined function: getclientinfo() in /share/storage/01/fr/frizzell/nmids/administrator/components/com_rsgallery2/options/com_installer/models/templates.php on line 55


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: jonathanb on April 22, 2008, 06:10:08 am
Hi

I unzipped the superclean in the templates folder but now if I go into the templates in the admin section, it does not go in. It does not even com up with an error. If I delete the superclaen folder it is fine. Is there something I need to do?

Thanks


Title: Re: [PHP 4 users][PENDING] Error installing a template. helper class missing?
Post by: john on April 22, 2008, 12:58:49 pm
Hi to all ..

the template manager in the nightly build is currently under construction .. please be patient

BTW:are you aware that the templates for the RSG2-1.5 version need a specific templateDetails.xml?

thanks

 john