Plugin Author
Me
(@cyberws)
Did you setup the WPAPI files on your phpBB board?
Thread Starter
sjouve
(@sjouve)
Yes, wpapi directory in styles directory of the phpBB board contains 3 files :
– index.php
– wpapi.stats.php
– wpapi.config.php (with my password)
Thread Starter
sjouve
(@sjouve)
Configuration infos :
– PHPBB 3.1.6
– WordPress 4.2.5 with HappenStance theme
Plugin Author
Me
(@cyberws)
Let’s make sure WPAPI is working correctly.
Alter the link below to insert the URL to your PHPBB board and secret key then paste it into your web browser and see if some statistics are generated and report back.
[URL TO YOUR PHPBB INSTALL]/styles/wpapi/wpapi.stats.php?s=[ENTER YOUR SECRET KEY]
Ex:
http://www.mysite.tld/phpbb/styles/wpapi/wpapi.stats.php?s=AS1C2949Zk392898
Thread Starter
sjouve
(@sjouve)
Yes ! Statistics are generated :
a:5:{s:8:”user_cnt”;s:3:”153″;s:9:”topic_cnt”;s:3:”141″;s:8:”post_cnt”;s:3:”485″;s:8:”last_mem”;s:16:”47828|atodombGob”;s:9:”last_post”;a:5:{i:0;s:53:”13|47746|158|507|S’entraîner aux ouvertures avec Scid”;i:1;s:54:”13|47746|159|508|Entrainement aux Ouvertures avec Scid”;i:2;s:17:”13|47746|159|509|”;i:3;s:65:”1|2|166|516|Afficher une partie ou un diagramme dans vos messages”;i:4;s:53:”13|2|158|517|Re: S’entraîner aux ouvertures avec Scid”;}}
Plugin Author
Me
(@cyberws)
Okay so the WPAPI is working correctly.
Now are you using the Widget or shortcode to display the stats?
Plugin Author
Me
(@cyberws)
I checked the display code for the widget and it seems okay.
When checking the WPAPI stats did you copy what was saved in the plugin and paste it into the URL to make sure there is no error there?
Thread Starter
sjouve
(@sjouve)
I’m sorry but i don’t understand the begining oy your question “When checking the WPAPI stats did you copy what was saved in the plugin” ?
Thread Starter
sjouve
(@sjouve)
When saving configuration i have the message “Settings have been saved! Continue to Main Menu”
But nothing is displayed in “Board One” form in Main Panel. All fields are empty. Normal ?
Plugin Author
Me
(@cyberws)
Yeah that isn’t right and points to the issue.
I suggest you delete the plugin and try reinstalling it as something isn’t quite right. You should have data saved in the “Board One” field.
Thread Starter
sjouve
(@sjouve)
Delete plugin and reinstall => Always the same problem 🙁
Compatibility problem with others plugin ?
Where are saved the configuration infos ? wp_options table ? Just phpbb_stats_version is in the database…
Plugin Author
Me
(@cyberws)
A conflict is always possible.
Correct. wp_options and a row called “phpbb_stats” and so it is possible another plugin is using that option.
Thread Starter
sjouve
(@sjouve)
Just phpbb_stats_version is in the database…
Plugin Author
Me
(@cyberws)
Then something is blocking “phpbb_stats” from being created when you hit “Save” on the plugin configuration screen. That is the variable that holds the board data (all of them).
If you want you could try and manually create phpbb_stats with zero data and see what happens when you try and save.