Search found 844 matches

by kasimi
Sat Oct 20, 2018 9:46 pm
Forum: Extension Writers Discussion
Topic: Suggested techniques for debugging and performing REST calls
Replies: 4
Views: 122

Re: Suggested techniques for debugging and performing REST calls

How do I print debug statements? During development you could use this: function dumpy($anything) { global $phpbb_root_path; $log_file = $phpbb_root_path . 'store/my_ext.log'; $entry = date('Y-m-d H:i:s ') . print_r($anything, true) . PHP_EOL; file_put_contents($log_file, $entry, FILE_APPEND | LOCK...
by kasimi
Sat Oct 20, 2018 6:39 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

Another idea: on this line , add this code: if ($user->data['username'] == 'YourUsername') { debug_print_backtrace(); } Edit your name on the first line so that only you will see debug information. When you trigger the error it will print what functions have been called where. The error can't be far...
by kasimi
Sat Oct 20, 2018 5:21 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

This is confusing. You don't see the admin re-auth page which means you already have session_admin enabled, yet you don't because page_header() is called instead of adm_page_header() . :? Please one more time make sure your files in board root/includes and board root/phpbb are not modified in any wa...
by kasimi
Sat Oct 20, 2018 3:34 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

You don't see the prompt To administer the board you must re-authenticate yourself. before entering the ACP, even after logging out completely and logging back in?

Did you make any changes to adm/index.php? Upload a fresh copy from the phpBB 3.2.1 package and try again.
by kasimi
Sat Oct 20, 2018 3:02 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

So you don't have session_admin enabled, same as wads24. When you log in to the ACP, do you re-authenticate? Is this line executed? https://github.com/phpbb/phpbb/blob/rel ... ex.php#L37 Add an echo there to make sure.
by kasimi
Sat Oct 20, 2018 2:43 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

It looks like it's the same symptom: instead of adm_page_header() , the non-ACP version page_header() is called, even though you're in the ACP. These conditions determines which of the two is called: if (defined('IN_ADMIN') && isset($user->data['session_admin']) && $user->data['session_admin']) { ad...
by kasimi
Sat Oct 20, 2018 2:10 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

Add an echo 'adm_page_header'; here: https://github.com/phpbb/phpbb/blob/rel ... cp.php#L35
It should be printed on every page in the ACP. Does it show on the page where you see that error message?
by kasimi
Sat Oct 20, 2018 10:30 am
Forum: Extension Writers Discussion
Topic: Version check SSL/.htaccess
Replies: 2
Views: 65

Re: Version check SSL/.htaccess

It seems the version file doesn't exist: https://forum.restlessrancor.com/versio ... check.json
by kasimi
Sat Oct 20, 2018 10:19 am
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

When commenting out that piece of code, the user session is missing the session_admin flag, causing the page_header() function to be called in some cases, even though in the ACP, the adm_page_header() is expected to always be called. If there happens to be a problem building the container, the adm_p...
by kasimi
Sat Oct 20, 2018 9:09 am
Forum: [3.2.x] Support Forum
Topic: IPv6 address not working in Whois
Replies: 23
Views: 462

Re: IPv6 address not working in Whois

As pointed out here , phpBB fetches whois information using the whois protocol. whatismyipaddress.com doesn't offer a whois service via the whois protocol, it only offers it via http. Currently phpBB uses whois.arin.net for IPv4 addresses and whois.sixxs.net for IPv6 addresses. As already mentioned,...
by kasimi
Fri Oct 19, 2018 10:03 am
Forum: Extension Writers Discussion
Topic: Php profiling tools? What's using my ram/cpu?
Replies: 5
Views: 158

Re: Php profiling tools? What's using my ram/cpu?

You can use Xdebug 2.6 or later to generate timing & memory profiles and QCacheGrind to visualize them.
by kasimi
Sun Oct 07, 2018 4:08 pm
Forum: Extension Writers Discussion
Topic: {% if style %}
Replies: 3
Views: 174

Re: {% if style %}

Good news. :D

Code: Select all

{% if user.style.style_name|lower != 'mystyle' %}
    this is not displayed in MyStyle
{% endif %}
by kasimi
Sun Oct 07, 2018 3:01 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 43
Views: 993

Re: phpBB encountered an error building the container due to an installed extension

Open board root/phpbb/di/container_builder.php Find around line 211 // Don't try to recover if we are in the development environment On a new line above, add throw $e; Browse to your ACP, you should see the error that's causing the phpBB encountered an error building the container due to an install...
by kasimi
Sat Oct 06, 2018 9:18 pm
Forum: Extension Writers Discussion
Topic: Edit Profile Field after core.user_add_after
Replies: 8
Views: 191

Re: Edit Profile Field after core.user_add_after

Yes, the user_row is read only too, but you can add your data to the sql_ary array: $event['sql_ary'] = array_merge($event['sql_ary'], [ 'jblicense_user_id' => ..., ]); At this point it's too late to stop the registration. I'd recommend doing all checks that could result in the registration to be de...

Go to advanced search