Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Mar 2017, 03:15
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
Help with Debugging PHP Code

I have been rewriting a pre-existing mod, and when I test my php file, I get the following error:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I have done a fair amount of research, and from what I can gather it is a closing bracket or quotation that is missing, however, I have been unable to locate the specific line causing this issue. Also, Line 520 correlates to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Due to limitations on threads, the source code of the php file in question, will be displayed in the next two posts below.

I appreciate any assistance with this issue that can be offered.

Thank you,

EDIT: The php file is located at http://charmeddarkness.net/auditionapp.php

--------------- Added 22 Mar 2017 at 03:15 ---------------


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 22 Mar 2017, 03:16
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 22 Mar 2017, 04:32
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
The best I can tell, you need an additional closing brace "}" at the end of your script.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #4  
Old 22 Mar 2017, 04:42
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
LOL! I actually just added a second } right before ?> And it worked...
Reply With Quote
  #5  
Old 22 Mar 2017, 04:50
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I use Notepad++ to create/edit PHP/js files, and it will show you which bracketing symbol matches with another, and this was how I was able to determine that you needed another closing brace at the end.

I would recommend using standard indentation of your code to make such issues more readily apparent as well.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #6  
Old 22 Mar 2017, 04:59
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
Originally Posted by MarkFL View Post
I use Notepad++ to create/edit PHP/js files, and it will show you which bracketing symbol matches with another, and this was how I was able to determine that you needed another closing brace at the end.

I would recommend using standard indentation of your code to make such issues more readily apparent as well.
Actually, I have a new issue... nothing with the code itself, its with the product itself. The usergroup permission entries are getting added to the datatable permissions... but there not showing up when going to edit a userhgroup...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 22 Mar 2017, 05:13
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I would ask about this in the product thread, so the author of the code will have a better chance of seeing your question.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #8  
Old 22 Mar 2017, 05:15
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
Originally Posted by MarkFL View Post
I would ask about this in the product thread, so the author of the code will have a better chance of seeing your question.
This was a pre-existing product that I was revising. It was the Staff Application mod that I am repurposing as more of Audition system for roleplay stories. I didn't want to ask there considering that a lot of the code has been changed from what it was originally written, you know what I mean?

--------------- Added 22 Mar 2017 at 05:18 ---------------

I think I found something...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The usml should have been changed, but I overlooked it. Should have been...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #9  
Old 22 Mar 2017, 05:31
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Okay, yes if you are rewriting an existing product to suit your needs, then asking the original author isn't necessarily a good idea.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #10  
Old 22 Mar 2017, 05:32
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
Originally Posted by MarkFL View Post
Okay, yes if you are rewriting an existing product to suit your needs, then asking the original author isn't necessarily a good idea.
Pretty much I edited a lot of the base php file, and nearly all of the xml and hook files, as well as the product file, so yeah.

Anyhow, yeah, I'm at a loss on this though.

--------------- Added 22 Mar 2017 at 05:34 ---------------

The following is the code in the auditionapp.php file as it relates to the usergroup permissions:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 22 Mar 2017 at 06:32 ---------------

Here is the .xml file:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #11  
Old 29 Mar 2017, 18:42
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
After about a week of debugging, it was an issue with a missing semicolon in the functions_auditionapp.php file LOL!
Reply With Quote
  #12  
Old 29 Mar 2017, 18:44
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Seraphyn View Post
After about a week of debugging, it was an issue with a missing semicolon in the functions_auditionapp.php file LOL!
Yep, those missing semi-colons can be a real PITA.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #13  
Old 29 Mar 2017, 19:17
Alice Alice is offline
 
Join Date: Mar 2013
Real name: Alice
Tell me about it lol
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 22:30.

Layout Options | Width: Wide Color: