Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 10-26-2014, 06:01 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Well then there is nothing you can do then.
I have posted for help on a PHP forum with that little bit of the mod. Hopefully one of them will be able to help me sort it out.
Reply With Quote
  #12  
Old 10-26-2014, 09:12 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope so, as I have a pretty close setup to what you have and can not replicate what you are getting.
Reply With Quote
  #13  
Old 10-26-2014, 01:37 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
I hope so, as I have a pretty close setup to what you have and can not replicate what you are getting.
Yeah I know, I have another client who is running this hack and they are running PHP 5.4 and vB 4.2.2 as well and it works just fine. I really think now that it may have something to do with the recent server upgrade/move for this client. The host he uses are horrible and could not set anything up to save their lives I think. I'm relatively sure that my dog could set it up better, but hey nothing I can do about that.
Reply With Quote
  #14  
Old 10-29-2014, 08:55 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll throw out an option.

As you are on PHP 5.4.x (and not PHP 5.5.x)

In your config.php file change from

Code:
$config['Database']['dbtype'] = 'mysqli';
to

Code:
$config['Database']['dbtype'] = 'mysql';
On the off chance regular mysql still works but mysqli does not.

Also- I have removed the file you posted. You may not redistribute whole files (or significant parts) of mods not marked as re-usable code.
Reply With Quote
  #15  
Old 10-29-2014, 12:57 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
I'll throw out an option.

As you are on PHP 5.4.x (and not PHP 5.5.x)

In your config.php file change from

Code:
$config['Database']['dbtype'] = 'mysqli';
to

Code:
$config['Database']['dbtype'] = 'mysql';
On the off chance regular mysql still works but mysqli does not.

Also- I have removed the file you posted. You may not redistribute whole files (or significant parts) of mods not marked as re-usable code.
Thanks but that did nothing as it was already marked as mysql and not mysqli. As for the file, ok.
Reply With Quote
  #16  
Old 10-29-2014, 03:13 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then did you try it as mysqli?

mysqli is the better one, if both work.
Reply With Quote
  #17  
Old 10-29-2014, 08:03 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Then did you try it as mysqli?

mysqli is the better one, if both work.
Yep since it was already in mysql I tried it as mysqli and I got the same problem.
Reply With Quote
  #18  
Old 11-05-2014, 01:41 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See my PM...

I believe it's as simple as some missing quotes.

$formbit['value'] = $q[$formbit[id]];

Should be

$formbit['value'] = $q[$formbit['id']];
Reply With Quote
  #19  
Old 11-05-2014, 03:22 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
See my PM...

I believe it's as simple as some missing quotes.

$formbit['value'] = $q[$formbit[id]];

Should be

$formbit['value'] = $q[$formbit['id']];
Thanks but that did not work.
Reply With Quote
  #20  
Old 11-05-2014, 04:08 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm thinking maybe the problem is $q. It looks like it might not be set to anything at that point (although it depends on the value of $_POST['do'], which I don't know). But I suppose it could be that before it was just an unset value generating a warning, and now something else has used it as a variable (a plugin or included vb code).

That's just a guess, but it looks like $formbit should definitely be an array at that point (unless you have a plugin using hook easy_forms_view_question_start that changes it).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05262 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete