EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: custom_width error upon install...  (Read 5852 times)

0 Members and 1 Guest are viewing this topic.

Offline nodn4rb

  • Posts: 1
  • Karma: 0
custom_width error upon install...
« on: December 29, 2008, 01:20:01 pm »
Hello all...hope we are well...

I am helping a friend with his site and we have chosen ezPortal for all our needs but ran into a problem when installing it via the Admin panel. He is running SMF 1.1.7 with roughly 10+ mods so I feel like this may be the cause but wanted to see what a solution may be...here is the error message we receive...

Column 'column_width' specified twice
File: /home/www/creativegarden.us/smf/Packages/temp/EzPortalInstall.php
Line: 198

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

here are the contents of the EzPortalInstall.php file that make ref to 'column_width':

// Layout Columns
db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}ezp_columns(
id_column int(11) NOT NULL auto_increment,
column_title tinytext,
can_collapse tinyint(1) default 0,
active tinyint(1) default 0,
column_width int(5),
column_percent int(5) default 0,
column_order int(11),
visibileactions text,
visibileboards text,
visibileareascustom text,
PRIMARY KEY  (id_column)) TYPE=MyISAM $UTFData", __FILE__, __LINE__);

column_width, column_order,column_width)
            VALUES ('Left', 1,1,'150',1,15)", __FILE__, __LINE__);
   
   db_query("INSERT INTO {$db_prefix}ezp_columns
               (column_title, can_collapse, active, column_width, column_order,column_width)
            VALUES ('Center', 1,1,'600',2,70)", __FILE__, __LINE__);
   
   db_query("INSERT INTO {$db_prefix}ezp_columns
               (column_title, can_collapse, active, column_width, column_order,column_width)
            VALUES ('Right', 1,1,'150',3,15)", __FILE__, __LINE__);
}


I dont know if that will help but wanted to post it up neways...i download it direct from this site and have tried to install it a number of times with the same results....any help would be greatly appreciated

thanks

:EDIT:

I JUST RESOLVED MY OWN ISSUE...HERE IS WHAT I HAD TO DO...

The culprit is the custom_width value was entered twice as the error message states here is what it should be:

PRIMARY KEY  (id_column)) TYPE=MyISAM $UTFData", __FILE__, __LINE__);

column_width, column_order,column_width *REMOVE)
            VALUES ('Left', 1,1,'150',1,15*REMOVE)", __FILE__, __LINE__);
   
   db_query("INSERT INTO {$db_prefix}ezp_columns
               (column_title, can_collapse, active, column_width, column_order,column_width*REMOVE)
            VALUES ('Center', 1,1,'600',2,70*REMOVE)", __FILE__, __LINE__);
   
   db_query("INSERT INTO {$db_prefix}ezp_columns
               (column_title, can_collapse, active, column_width, column_order,column_width*REMOVE)
            VALUES ('Right', 1,1,'150',3,15*REMOVE)", __FILE__, __LINE__);

Extract the .zip file to anywhere on your pc, just remember where so you can locate it. Next edit the EzPortalInstall.php file making the changes as described above. The save. Once done create a new .zip file including the newly edited .php. Then upload to your server and Apply the mod and you are done!!! Hope this helps somone.....

thanks guys for making the portal...looking to get my hands wet now lol

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: custom_width error upon install...
« Reply #1 on: December 29, 2008, 06:52:00 pm »
Thanks! I have fixed the issue.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
34 Replies
72265 Views
Last post December 26, 2010, 06:31:20 pm
by Maxx
2 Replies
4985 Views
Last post October 04, 2010, 08:59:43 am
by samih_1996
0 Replies
3751 Views
Last post November 27, 2010, 09:48:08 pm
by kuGG
0 Replies
8138 Views
Last post July 26, 2014, 06:50:29 am
by Maxx
17 Replies
16012 Views
Last post January 06, 2020, 03:52:03 pm
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal