Status
Not open for further replies.

tyteen4a03

New member
After editing default credit, credit edit popup no longer work

When I click on a user's credit (the one that leads to credits.php), a popup does not show up (or the credits.php throws a 500 at me) after I deleted the original credit vBCredits imported. Even if I don't delete it and instead create another credit and edit the default credit's name, the credit adjust popup will show the original credit no matter which credit I clicked.

The 500'd vBCredits runs on PHP Version 5.3.8, while the one that does not show popups runs on PHP Version 5.2.13.

---------- Post added 7th April 2012 at 00:09 ---------- Previous post was 25th March 2012 at 22:23 ----------

It's been two weeks, nobody bothers to respond AND others' issue gets answered? Nice support you have there...
 
Last edited:
I'll tag the developer, Darkwaltz4 to make sure he sees your post, sorry for the delay.

Cosmic
 
*cough* hello, and i humbly accept your disdain over lack of response.

so - do you get any javascript errors when you click the popup? are you able to visit credits.php normally without any 500 errors?
 
*cough* hello, and i humbly accept your disdain over lack of response.

so - do you get any javascript errors when you click the popup? are you able to visit credits.php normally without any 500 errors?
I get a 500 on PHP 5.3, and I can visit credits.php normally on PHP 5.2 (can't find any js error)
 
Okay, so it sounds like credits.php is the problem, which in turn breaks the popup.

Do you know how to access your error log? (usually in something like cpanel). You can visit credits.php, get the 500 error, then immediately visit your logs. That should contain the actual error listed by timestamp, which you can paste here.

If you are unsure or unable to do this, I will need you to PM me ftp info and an admin login in order to diagnose the problem further. I am running php5.3 without any issues, and error 500 is just a generic "something went wrong" error that your server generates when your error reporting settings are marked to suppress errors publicly.
 
Oh, just realized that it isn't a 500, but instead chrome says ERR_CONTENT_DECODING_FAILED.

To reproduce this, this should work:
1. Install vBCredits (custom admincp folder name might be needed)
2. Add a second credit
3. Delete the first credit
 
That error indicates an encoding error, and the multiple currency thing is probably a red herring.

To test, set to No this setting: GZIP HTML Output

Then visit credits.php - it should work, and so should the popup.
That is still a bug, just want to confirm first.
 
credits.php now loads, but is giving me errors about vBulletin itself:

Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 55
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 107
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 111
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 119
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 130
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 134
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 142
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 211
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\init.php on line 389
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\htdocs\forums\includes\class_core.php on line 2552

and the popup still doesn't show up.
 
Edit credits.php and find

PHP:
error_reporting(E_ALL & ~E_NOTICE);

change to

PHP:
error_reporting(E_ALL & ~E_NOTICE & ~8192);

should fix the page and the popup. if that works, turn your gzip output back to ON, and it should still work :)
 
Here is the whole scenario so far...

The popup is broken because it is serviced via credits.php.
credits.php was broken because of the error 500.
You were getting error 500 because of an encoding error.
You were getting the encoding error because the deprecated errors were in plaintext, when you were setting the output to be gzipped.
The deprecated errors were from vbulletin bootstrapping, not from vbcredits itself.
vB3.8 (as you marked this issue) when run on php5.3 (you said credits.php gives errored there, but fine on 5.2) needs all files to now suppress deprecation errors during vbulletin bootstrapping.
The edit I gave you will suppress the deprecation errors, and the rest of this should fall into place.

So right now, with the edit I gave you, do you still get deprecation errors on credits.php, php5.3, gzip off?
If so, it would be faster if you PMd me ftp and an admin login so I can figure out why the logical course of action isnt happening.
 
The deprecation errors are solved, however the pop up still did not show up. (yes I applied the fix)

Also, the pop ups are not shown in PHP 5.2 as well, so I don't think that line would be the cure.
 
Excellent. Even if the popup has another issue, the errors would still be causing the error 500 and breaking the popup still - because the response would always get aborted. In fact, can you turn back on gzip encoding to confirm credits.php still works?

Are you sure you have events set up that work through the popup? Donate/Transfer/Purchase?
 
Doesn't "Can Adjust Currencies" usergroup permission give you the popup automatically?

Yes, with gzip enabled it works now.
 
That permission determines who can use it. You need to have an Adjust event setup to determine who it can be used ON.
 
So in the Adjust Event, for the Affected Participant, if I set "Receiving User" everything should be OK?

Also, I think the deprecation notice affected actions export too.
 
You only really need to care about Affected Participant if you are setting a non-zero value to anything ie as a tax.

You can and should apply the same edit to (admincp)/credits_admin.php to fix that too.
 
Status
Not open for further replies.

Legacy vBCredits II Deluxe

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
845
Customer rating
0.00 star(s) 0 ratings
Back
Top