News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Custom Form Mod

Started by live627, July 09, 2008, 10:24:44 PM

Previous topic - Next topic

Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

petewadey

On my site which is smf 2.0.18, my custom form works perfectly. When I updated my mirrored test site to 2.0.19, the board that links to my custom form just refreshes the home page, and doesn't go to the form. Any ideas why?

Kindred

how did you update to 2.0.19?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

petewadey

Through Package Manager. I just clicked the link to install the patch

Kindred

were there any errors in the patch?   because what you describe suggests that something got incorrectly overwriten  (check form settings and permissions, as well)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

petewadey

There were errors in Profile-Modify php. I did replace this file manually with the 2.0.19 version. I kept the old one to revert to, but not tied doing so.

live627

can you give a link please?

petewadey

I could, but the test site is password protected and the form isn't open to guests. I'll change the setting later today and get back to you with the links for both live site that works, and test site that doesn't

petewadey

Update.
I restored my test site to before I changed the Profile-Modify php, and updated to 2.0.19, and the form works perfectly. I then tried updating to 2.0.19, ignoring the warnings re Profile-Modify php, and the form no longer works. Does this give any clues as to what might be the problem?You cannot view this attachment.

petewadey

I'm running version 1.7 on php 5.6. I've tried removing 1.7, update to php 7.4, and installing 2.3 of this mod. This still doesn't work? It seems that version 1.7 doesn't fully uninstall, so I can't even try a fresh start? Any help please to fully uninstall 1.7.

live627

Quote from: petewadey on January 04, 2022, 11:28:14 AM. When I updated my mirrored test site to 2.0.19, the board that links to my custom form just refreshes the home page, and doesn't go to the form
First, let's try to figure this one out because updating the mod might not fix the redirection problem. Are you willing to send me a link to your test site via a personal message?

live627

v2.1.0

Features
  • Add support for SMF 2.1

Shades.

#1972
Quote from: live627 on February 25, 2022, 09:34:05 AMv2.1.0

Features
  • Add support for SMF 2.1

Thank you Thank you Thank you! ;D  8)

Edit: FYI your link to mod on first page is messed up! ;)
[url=https://custom.simplemachines.org/index.php?mod=1279]Link to the mod[/url]
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Tried to install on fresh 2.1.1 no other mods.

QuoteDatabase Error
BLOB/TEXT column 'output' can't have a default value
File: /home2/*****/public_html/*****/Packages/temp/install.php
Line: 73

QuoteError
Type of error
General
Error message
Hook call: function "customform_menu_buttons" in file /home2/*****/public_html/********** could not be called.
URL of page causing the error
https:/*****.*****.com/index.php?action=profile;area=alerts_popup;counter=0;u=1

Backtrace information
#0: call_integration_hook()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 5556
#1: setupMenuContext()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 4342
#2: setupThemeContext()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 4499
#3: template_header()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 4142
#4: obExit()
Called from /home2/*****/public_html/**********/index.php on line 190

QuoteError
Type of error
General
Error message
The callable customform_menu_buttons could not be called.
URL of page causing the error
https:/*****.*****.com/index.php?action=profile;area=alerts_popup;counter=0;u=1

Backtrace information
#0: call_helper()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 5747
#1: call_integration_hook()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 5556
#2: setupMenuContext()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 4342
#3: setupThemeContext()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 4499
#4: template_header()
Called from /home2/*****/public_html/**********/Sources/Subs.php on line 4142
#5: obExit()
Called from /home2/*****/public_html/**********/index.php on line 190

Also I can't uninstall it. It shows it's not installed but it installed a "Custom Forms" link in admin. (See attachments)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Quote from: Shades. on February 25, 2022, 02:37:49 PMAlso I can't uninstall it. It shows it's not installed but it installed a "Custom Forms" link in admin.
I was able to uninstall the link in admin by running fix_packages.php and removing all hooks. I will wait for further instructions or an update. ;)

Thanks 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

live627

v2.1.1

Bug Fixes
  • Do not define a default value for BLOB/TEXT column 'output'
  • Do not define a hook for integrate_menu_buttons that leads to nowhere

Shades.

I think it just don't like me! :o  :P

QuoteDatabase Error
Data too long for column 'text' at row 19
File: /home2/*****/public_html/*****/Packages/temp/install.php
Line: 128

QuoteError
Type of error
Database
Error message
Database Error: Data too long for column 'text' at row 19
File
/home2/*****/public_html/*****/Packages/temp/install.php
Line
128
URL of page causing the error
https://*****.com/index.php?action=admin;area=packages;sa=install2;package=custom-forms_2-1-1.tgz;pid=0

Backtrace information
#0: smf_db_error()
Called from /home2/*****/public_html/*****/Sources/Subs-Db-mysql.php on line 494
#1: smf_db_query()
Called from /home2/*****/public_html/*****/Sources/DbPackages-mysql.php on line 432
#2: smf_db_change_column()
Called from /home2/*****/public_html/*****/Packages/temp/install.php on line 128
#3: require()
Called from /home2/*****/public_html/*****/Sources/Packages.php on line 1064
#4: PackageInstall()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 6001
#5: call_helper()
Called from /home2/*****/public_html/*****/Sources/Packages.php on line 91
#6: Packages()
Called from /home2/*****/public_html/*****/Sources/Admin.php on line 499
#7: AdminMain()
Called from /home2/*****/public_html/*****/index.php on line 187
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

live627

Getting closer!

what is the result of this query?
select max(length(text)) from smf_cf_fieldsalso what is the type of the text column?

Shades.

#1978
Actually here is what is still in the database from previous version. (see attachments)

Edit: Also I was able to install it on a clean SMF 2.1.1 but when going to /index.php?action=admin;area=modsettings;sa=customform it goes to a blank page. (no error log)

Quote from: live627 on February 26, 2022, 06:11:21 AMselect max(length(text)) from smf_cf_fields

max(length(text))
192
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

live627

looks like you were running v1.7

so either phone or rule2 are too long for the new code. The new size is 150 whereas you have 192. They need trimmed.

Or you can modify the code to accept more data.

install.php
array(
'name' => 'type',
'type' => 'varchar',
'size' => 150,
'null' => true,
),
change size to 255 array(
'name' => 'type',
'type' => 'varchar',
'size' => 255,
'null' => true,
),

Advertisement: