collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 336
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Error when installing clean copy of 2.2 on SMF 1.1.8  (Read 8309 times)

0 Members and 1 Guest are viewing this topic.

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Error when installing clean copy of 2.2 on SMF 1.1.8
« on: April 15, 2009, 05:03:10 PM »
This is the error I get:

Database Error
Invalid default value for 'approved'
File: C:*****\******\Packages\temp\install1-1.php
Line: 852 

I have tried it on 3 seperate clean installs of 1.1.8 but with the same results.

It installs to other versions fine...but I need 1.1.8 for a particular forum that I am running....

Please help.  This mod is THE BEST...and I cannot live without it.

Thanks so much in advance.

David

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #1 on: April 16, 2009, 10:39:22 PM »
Are they totally clean installs? Ie. Are the databases completely new or have you just replaced the files of an older forum?

If its an older database with data from an older version of SimplePortal then try running the SQL query below for your SMF database, using PHPMyAdmin.

Code: [Select]
ALTER TABLE `{$db_prefix}sp_articles` CHANGE `approved` `approved` TINYINT( 2 ) NOT NULL
Replace the '{$db_prefix}' variable with your database prefix. You should also backup your database before attempting this.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #2 on: April 17, 2009, 12:42:48 AM »
Quote
Are they totally clean installs? Ie. Are the databases completely new or have you just replaced the files of an older forum?

Yes sir, totally and completely new installs..new directories, new database, new SQL directories, new names for all directories.

I know this error must sound extremely odd to you, because it certainly does to me as well. I've never seen anything like it.  I should add that these are clean SMF 1.1.8 forums, nothing added, not even another mod installed before Simple Portal. 

When I go to install the mod...it tells me everything "passed"....no issues...and then it tosses back the error:

Database Error
Invalid default value for 'approved'
File: C:*****\******\Packages\temp\install1-1.php
Line: 852 

Now...it doesnt do this for other versions of SMF.  Only 1.1.8.  I would gladly ditch 1.1.8 except there are several mods that are essential to these forums that are only designed for 1.1.8 at this point. 

Any help would be appreciated. It's just the strangest error I have ever seen, and I can't figure it out.

Thanks,

David

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #3 on: April 17, 2009, 01:18:38 AM »
I find it an extremely strange error as well. SimplePortal 2.2 installs on SMF 1.1.8 just fine for me.

Also that error is in the 'sp_db_change_column' function, which should never even be called if you are just installing simpleportal, only if the tables are already there and need updating.

Is the process actually adding any incomplete database information? Try removing the '{$db_prefix}sp_%' tables, if it has added any of them.

I'll see if any of the developers have any idea about this issue.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #4 on: April 17, 2009, 02:33:55 AM »
I've tested sp_db_change_column() function several times with the field in question, but didn't get any errors. So we have to first see the full query created by that function on your forum to make any guesses.

Make this change in your Settings.php file.

Code: (Find) [Select]
$db_error_send = 1;
Code: (Replace) [Select]
$db_error_send = 1;
$db_show_debug = true;

And run the install script again. You should now see the full query below the error, if not check the Forum Error Log for that too. Once you get it, copy it here and take the change you applied in Settings.php back.
And slowly, you come to realize... It's all as it should be...

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #5 on: April 23, 2009, 01:32:31 AM »
I've tested sp_db_change_column() function several times with the field in question, but didn't get any errors. So we have to first see the full query created by that function on your forum to make any guesses.

Make this change in your Settings.php file.

Code: (Find) [Select]
$db_error_send = 1;
Code: (Replace) [Select]
$db_error_send = 1;
$db_show_debug = true;

And run the install script again. You should now see the full query below the error, if not check the Forum Error Log for that too. Once you get it, copy it here and take the change you applied in Settings.php back.


Now I get the error:

Database Error
MyISAM table 'smf_sp_articles' is in use (most likely by a MERGE table). Try FLUSH TABLES.
File: C:\******\******\******\Packages\temp\install1-1.php
Line: 784

I have never had these issues before and still don't with any other mod.  The old version of SP works as well, when I install it clean.

Could this be something to do with the server and their SQL setup, perhaps?

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #6 on: April 25, 2009, 04:28:38 AM »
Sorry for the delayed response. Would you please try the attached package?
And slowly, you come to realize... It's all as it should be...

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #7 on: April 25, 2009, 02:25:56 PM »
Sorry for the delayed response. Would you please try the attached package?

Hi again...don't worry about the delay. I know the team is reliable and will get back to us....no worries here.

I tried the file you sent.    At first, it looks good....says it passed...no issues. I click "install".....



Then it takes FOREVER to process and install (60 to 90 seconds)

And then I get this error message:



"BLOB/TEXT column 'label' can't have a default value
File: *****\*****\*****
Line 854"

I have no clue at this point how to pinpoint this problem and make it work.

I'm no expert, but I have some moderate experience.  I know my way around PHP and SQL to some extent...and I am stumped.

Thanks again for all your support and patience.  It is much appreciated.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #8 on: April 28, 2009, 05:30:30 AM »
Again sorry for the delay, we're quite busy with 2.2.1 and some other stuff.

Attached package should, hopefully, will be fine for you.
And slowly, you come to realize... It's all as it should be...

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #9 on: April 29, 2009, 12:28:10 PM »
Again sorry for the delay, we're quite busy with 2.2.1 and some other stuff.

Attached package should, hopefully, will be fine for you.


I tried it several times....I still get :

"BLOB/TEXT column 'label' can't have a default value
File: *****\*****\*****
Line ***"

this time I decided to try editing the thing myself from the file you sent me....but all it did was move the error around to different lines and make things worse.

The thing that perplexes me the most is every other mod out there, including TinyPortal...works just fine.  The problem is...I DO NOT WANT TinyPortal.   I've shopped around and cannot find anything that I like, need, or WANT more than SP.

Any ideas?  I've run out.

Thanks,

David


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #10 on: April 30, 2009, 06:34:50 AM »
Any chance you could provide me a temporary admin and FTP access? This is quite an unusual error and as I cannot reproduce it in my installations, I'd appreciate if you would let me debug the issue.
And slowly, you come to realize... It's all as it should be...

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #11 on: April 30, 2009, 04:29:43 PM »
Any chance you could provide me a temporary admin and FTP access? This is quite an unusual error and as I cannot reproduce it in my installations, I'd appreciate if you would let me debug the issue.

Absolutely...

I'll set up another clean SMF 1.1.8. and you can upload SP from scratch if you like?  That way you can see the original errors all the way to the present ones...

I will email you with the details....

Thank you very much.

David

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #12 on: May 01, 2009, 04:34:08 AM »
The error had two sides:

1) If there were no SP tables in the database: In this case, while default blocks were being inserted, text fields (which cannot have a default value) that didn't had a value passed caused errors. Solution was passing an empty string.

2) If there were SP tables in the database: However, in this case; although a text field cannot have a default value, list_columns function returned an empty string for text fields and change_column function was trying to set the default value as an empty string. Despite the fact that it should be fine to do that, it is probably related to MySQL configuration. Solved this by ignoring default value field when returned value is an empty string.

The 2.2 package I uploaded on your test forum has the fixed install scripts within, so you can use that package for your installations.

Thanks for letting us debug the issue on your server.
And slowly, you come to realize... It's all as it should be...

Offline David

  • Beta Tester
  • *
  • Posts: 41
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #13 on: May 01, 2009, 04:57:45 AM »
The error had two sides:

1) If there were no SP tables in the database: In this case, while default blocks were being inserted, text fields (which cannot have a default value) that didn't had a value passed caused errors. Solution was passing an empty string.

2) If there were SP tables in the database: However, in this case; although a text field cannot have a default value, list_columns function returned an empty string for text fields and change_column function was trying to set the default value as an empty string. Despite the fact that it should be fine to do that, it is probably related to MySQL configuration. Solved this by ignoring default value field when returned value is an empty string.

The 2.2 package I uploaded on your test forum has the fixed install scripts within, so you can use that package for your installations.

Thanks for letting us debug the issue on your server.


SiNaN....

I have to tell you that some of what you have said...went over my head...I'm just learning this stuff now.  If there is something I can change related to MySQL configuration...would you have any idea what that would be?  I will NEVER have an SMF site without SP on it. So, when Simple Portal does its upgrades, I am, naturally, worried about future installation problems.  Since I know that the problem is MySql related (I kind of guessed it was), if you have any advice on that, I would certainly take it.

You said: "Thanks for letting us debug the issue on your server."

Here's what I can't figure out....

I came to you with a problem that turns out to be completely unrelated to SP.  99.999 percent of your members are installing it with no problems...you debugged MY server problem, rewrite your stuff around MY errors to make it work.....

and YOU are thanking ME?

This is why I will NEVER leave Simple Portal.  You all go above and beyond the call of duty...even for clueless folks like me.  :D

You can't know how grateful I am.

There comes a time for professionalism...and then there comes a time where all I can say is "YOU PEOPLE TOTALLY ROCK, DUDE!!!"

Thank you again.

David

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Error when installing clean copy of 2.2 on SMF 1.1.8
« Reply #14 on: May 01, 2009, 05:14:31 AM »
SiNaN....

I have to tell you that some of what you have said...went over my head...I'm just learning this stuff now.  If there is something I can change related to MySQL configuration...would you have any idea what that would be?  I will NEVER have an SMF site without SP on it. So, when Simple Portal does its upgrades, I am, naturally, worried about future installation problems.  Since I know that the problem is MySql related (I kind of guessed it was), if you have any advice on that, I would certainly take it.

I'm not very skilled with MySQL, ufortunately, but I came across a MySQL bug report similar to this:

http://bugs.mysql.com/bug.php?id=13794

The last comment might be your solution:

I've found it not a bug.
It is caused by the configuration file automatically generated by the configuration tool
under Windows.
In the my.ini, sql-mode is set to STRICT_TRANS_TABLES by default, which causes this error.

However, we are trying to make SP compatible with all types of configurations. That means, if SMF is working on your server, we have to make sure that SP works on the same server too.

Quote
You said: "Thanks for letting us debug the issue on your server."

Here's what I can't figure out....

I came to you with a problem that turns out to be completely unrelated to SP.  99.999 percent of your members are installing it with no problems...you debugged MY server problem, rewrite your stuff around MY errors to make it work.....

and YOU are thanking ME?

This is why I will NEVER leave Simple Portal.  You all go above and beyond the call of duty...even for clueless folks like me.  :D

You can't know how grateful I am.

There comes a time for professionalism...and then there comes a time where all I can say is "YOU PEOPLE TOTALLY ROCK, DUDE!!!"

Thank you again.

David

Thanks for the kind words. And it is comments like this, shows us that we are on the right path. Thanks again for your support for SimplePortal. It wouldn't have been possible without you, our users.
And slowly, you come to realize... It's all as it should be...