News
Board index
Downloads
Search
Tracker
Gallery
RRC-Configurator
Paypal donation

Skip to content


Advanced search
  • Board index ‹ phpBB Gallery ‹ Installation, Update & Conversion
  • Change font size
  • Print view
  • FAQ
  • Members
  • Register
  • Login

Errors on install script (fixed)

English: Support for problems on installation, update & conversion
Deutsch: Support für Probleme bei der Installation, dem Update & der Konvertierung

Forum rules
In order to get fast and easy support be sure, to put a LINK TO YOUR BOARD into your Post!
(Note: Topics without links to the board and full copyright may be left unsupported!)
You should also have read the Frequently Asked Questions!
=====
Um schnellen und einfachen Support zu bekommen, vergiss nicht, einen LINK ZU DEINEM BOARD in den Beitrag zu packen!
(Anmerkung: Themen ohne Link zum Board und korrektem Copyright werden nicht beachtet!)
Du solltest außerdem die Frequently Asked Questions gelesen haben!
Post a reply
11 posts • Page 1 of 2 • 1, 2

Errors on install script (fixed)

Postby GoBieN » Mon Apr 28, 2008 7:46 pm

Hey,

I'm having some trouble installing the album 3.0.1 on a phpbb-seo premod forum.
Because the module-id's are not in the same order like phpBB original, in your install script you rely on the fact that the modules have the eaxct id like you have.

I have read that you fixed this in 3.0.2 if so, can i download the fixed versio from SVN ?
And if yes, how can i do this ?
Last edited by GoBieN on Fri Jun 20, 2008 5:42 pm, edited 2 times in total.
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Re: Download from SVN ?

Postby nickvergessen » Mon Apr 28, 2008 9:11 pm

we are not on 3.0 but 0.3

you should not use the current 0.3.1dev which may become 0.3.2 because we changed the permission system, so we have to test it at first.
cheers nickvergessen

No Support through pm and mail!
German Support Team Member, MOD Author, Developer
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 3770
Topics: 169
Images: 121
Joined: Mon Oct 15, 2007 3:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen
  • E-mail nickvergessen
  • Website
  • Personal album
Top

Re: Download from SVN ?

Postby GoBieN » Mon Apr 28, 2008 10:42 pm

Okay, then i guess i have to wait a bit. Or change the install script myself ;)
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Re: Download from SVN ?

Postby nickvergessen » Tue Apr 29, 2008 10:50 am

try this one
Attachments
install_gallery.zip
(49.66 KiB) Downloaded 99 times
cheers nickvergessen

No Support through pm and mail!
German Support Team Member, MOD Author, Developer
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 3770
Topics: 169
Images: 121
Joined: Mon Oct 15, 2007 3:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen
  • E-mail nickvergessen
  • Website
  • Personal album
Top

Re: Download from SVN ?

Postby GoBieN » Tue Apr 29, 2008 7:12 pm

nickvergessen wrote:try this one

Still ahs the module-id hardocded in it (163) and mine is 168.
I adjusting the script like this:
Code: Select all
         //look up module id for UCP_MAIN to use for parent_id in new gallery module
         $sqls = 'SELECT module_id FROM phpbb_modules WHERE module_langname = \'UCP_MAIN\'';
         $results = $db->sql_query($sqls);
         while( $row = $db->sql_fetchrow($results) )
         {
            $gallery_ucp_id = $row['module_id'];
         }         
         if (!isset($gallery_ucp_id )) die ('Could not get UCP_MAIN module ID');
         //look up module id for ACP_CAT_DOT_MODS to use for parent_id in new gallery module
         $sqls = 'SELECT module_id FROM phpbb_modules WHERE module_langname = \'ACP_CAT_DOT_MODS\'';
         $results = $db->sql_query($sqls);
         while( $row = $db->sql_fetchrow($results) )
         {
            $gallery_acpmods_id = $row['module_id'];
         }               
         if (!isset($gallery_acpmods_id )) die ('Could not get ACP_CAT_DOT_MODS module ID');   

Testing now. Will let you know ;)

edit: syntax error in code, fixed
Last edited by GoBieN on Tue Apr 29, 2008 8:03 pm, edited 1 time in total.
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Re: Download from SVN ?

Postby GoBieN » Tue Apr 29, 2008 8:02 pm

Hmm your suggested install script checks for tables before i make selection ?
install.php (did not select mode yet)
SQL ERROR [ mysqli ]
Table 'honda_test.phpbb_gallery_config' doesn't exist [1146]
SQL
SELECT * FROM phpbb_gallery_config
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: install_gallery/install.php
LINE: 36
CALL: dbal_mysqli->sql_query()

I commented the lines at line nr 36 where you try to fecth info from the gallery table !
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Re: Download from SVN ?

Postby GoBieN » Tue Apr 29, 2008 8:15 pm

SQL ERROR [ mysqli ]
Column 'parent_id' cannot be null [1048]
SQL
INSERT INTO phpbb_modules (module_basename, module_enabled, module_display, parent_id, module_class, module_langname, module_mode, module_auth, left_id, right_id) VALUES ('gallery', 1, 1, NULL, 'acp', 'ACP_GALLERY_OVERVIEW', 'overview', '', 281, 282)
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: includes/acp/acp_modules.php
LINE: 804
CALL: dbal_mysqli->sql_query()
FILE: install_gallery/install.php
LINE: 66
CALL: acp_modules->update_module_data()
FILE: install_gallery/install.php
LINE: 336
CALL: add_module()


Fixed by checking ID for newly created module gallery overview for use in next modules
Code: Select all
         //look up module id for  newly created gallery module to use for parent_id in next modules
         $sqls = 'SELECT module_id FROM phpbb_modules WHERE module_langname = \'PHPBB_GALLERY\'';
         $results = $db->sql_query($sqls);
         while( $row = $db->sql_fetchrow($results) )
         {
            $acp_gallery['module_id'] = $row['module_id'];
         }               
         if (!isset($acp_gallery['module_id'])) die ('Could not get $acp_gallery[\'module_id\']');



It was tough, but worth it ;)
Informatie

Installation of the MOD v0.3.1 was successful.
Now delete the install_gallery/ root.
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Re: Download from SVN ?

Postby GoBieN » Tue Apr 29, 2008 9:52 pm

Here is the modified install script, feel free to do with it what you want.
http://www.honda-camino.be/root/install_gallery.zip
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Re: Download from SVN ?

Postby nickvergessen » Tue Apr 29, 2008 10:47 pm

GoBieN wrote:Hmm your suggested install script checks for tables before i make selection ?
install.php (did not select mode yet)
SQL ERROR [ mysqli ]
Table 'honda_test.phpbb_gallery_config' doesn't exist [1146]
SQL
SELECT * FROM phpbb_gallery_config
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: install_gallery/install.php
LINE: 36
CALL: dbal_mysqli->sql_query()

I commented the lines at line nr 36 where you try to fecth info from the gallery table !

ok, thanks will be fixed
cheers nickvergessen

No Support through pm and mail!
German Support Team Member, MOD Author, Developer
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 3770
Topics: 169
Images: 121
Joined: Mon Oct 15, 2007 3:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen
  • E-mail nickvergessen
  • Website
  • Personal album
Top

Re: Errors on install script (fixed) (ex Download from SVN )

Postby GoBieN » Tue Apr 29, 2008 11:10 pm

i'm glad i have the gallery back !

If anyone is thinking about mixing phpBB Gallery with phpBB-SEO then know you will have to change quite a bit for it to work. Seo does not like the fact that gallery is index.php

Instructions here:
http://www.phpbb-seo.com/boards/advance ... html#16325

Demo here:
http://www.honda-camino.be/premod/gallery/gallery.php
http://www.honda-camino.be/premod/your- ... b3-t1.html
GoBieN
Posts 30 - 40
Posts 30 - 40
 
Posts: 30
Topics: 3
Joined: Wed Mar 05, 2008 4:04 pm
  • E-mail GoBieN
Top

Next

Post a reply
11 posts • Page 1 of 2 • 1, 2

Return to Installation, Update & Conversion

Who is online

Users browsing this forum: No registered users and 0 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Time : 0.078s | 21 Queries | GZIP : Off