Chrisj Posted July 1, 2016 Share Posted July 1, 2016 I'm trying to add a Member Credit modification to a php file, that works successfully on another site. I'm trying to figure it out as I go, When I add some of the lines of code into the search.php file I see a HTTP Error 500. But when I commented-out these lines: //CREDITS MOD //--BEGIN-- $video_price = videoPrice(); $total_price = $video_price * $total_records; $member_credits = get_member_credits($user_id); // --END-- the file proceeds successfully. So, obviously I'm missing something. Can you tell me what the function of these lines might be? And maybe what might be needed? Or tell me what these lines might mean? Any help will be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/301422-adding-some-modification-code-creates-an-error/ Share on other sites More sharing options...
Jacques1 Posted July 1, 2016 Share Posted July 1, 2016 The only way to find out what's wrong is to actually check the PHP error log on your server. We can only guess. Maybe one of the functions is misspelled or not included in this particular script. Quote Link to comment https://forums.phpfreaks.com/topic/301422-adding-some-modification-code-creates-an-error/#findComment-1534180 Share on other sites More sharing options...
ginerjm Posted July 1, 2016 Share Posted July 1, 2016 if you turned error reporting you could see the error message Quote Link to comment https://forums.phpfreaks.com/topic/301422-adding-some-modification-code-creates-an-error/#findComment-1534187 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.