vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need help with a Mysqi problem using a mod (https://vborg.vbsupport.ru/showthread.php?t=315024)

HM666 10-26-2014 06:01 AM

Quote:

Originally Posted by ozzy47 (Post 2520064)
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.

ozzy47 10-26-2014 09:12 AM

I hope so, as I have a pretty close setup to what you have and can not replicate what you are getting.

HM666 10-26-2014 01:37 PM

Quote:

Originally Posted by ozzy47 (Post 2520083)
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. :(

BirdOPrey5 10-29-2014 08:55 AM

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.

HM666 10-29-2014 12:57 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2520445)
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.

BirdOPrey5 10-29-2014 03:13 PM

Then did you try it as mysqli?

mysqli is the better one, if both work.

HM666 10-29-2014 08:03 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2520494)
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. :(

nhawk 11-05-2014 01:41 PM

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']];

HM666 11-05-2014 03:22 PM

Quote:

Originally Posted by nhawk (Post 2521477)
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.

kh99 11-05-2014 04:08 PM

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).


All times are GMT. The time now is 08:17 AM.

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.01095 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete