Code only works with debugging enabled?
-
This is totally puzzling. Here is the background:
1) Woo Listings Theme with Custom Post types & fields
2) Custom template to list posts eligible for update by signed in user
3) Custom template to edit eligible posts for signed in user called by form submit passing post idThe relevant code for template in item 2
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
The problem:
When I remark out these three lines:print('<pre>'); print_r($_POST); print('</pre>');clicking the edit button from item 2 appends the url of the source page to the destination page and comes back with a 404.
I just can’t work out why it functions with the debugging code and fails without it. Any help will be greatly appreciated, and thanks in advance.
The topic ‘Code only works with debugging enabled?’ is closed to new replies.