Pagina 1 van 3
Mod werkt niet...
Geplaatst: 02 mei 2013, 09:40
door BianCiona
- Adres van je forum: http://paranormaal-forum.bianciona.com
Event. modificaties op je forum:
Wanneer ontstond het probleem? Tijdens het installeren van deze mod...
phpBB versie: 3.0.11
Heb je onlangs iets veranderd aan je forum? Het installeren van een mod
Wat is het probleem?
Ik wou deze mod installeren, alles is goed gegaan. Totdat ik het wilde uitproberen, hij werkte niet en kreeg allemaal foutmeldingen. Ook bij het koppelen van een account werkte deed hij het niet, werd ook ineens uitgelogd. Heeft iemand ervaring met deze mod of wil iemand hier naar kijken?
Gr. BianCiona
Nog even de link naar de pagina waar de mod op staat: Hiero
Re: Mod werkt niet...
Geplaatst: 02 mei 2013, 12:29
door Ger
Ik ken de MOD verder niet (ook niet gevalideerd op .com als ik het zo begrijp?), maar wellicht is het handig als je aangeeft wat voor foutmeldingen je krijgt. Dat kan helpen met het achterhalen van het probleem.

Re: Mod werkt niet...
Geplaatst: 02 mei 2013, 16:52
door BianCiona
Nee, hij is idd niet gevalideerd op phpbb.
Deze foutmeldingen geeft hij bij het koppelen van een sociaal account aan een forum account
- Spoiler: bekijk
- PHP Notice: in file [ROOT]/includes/functions_oa_social_login.php on line 119: Undefined variable: settings
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4738: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4740: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4741: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4742: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
En deze bij het inloggen met een sociaal account (hij maakt dan een nieuw account aan op het forum)
- Spoiler: bekijk
- PHP Notice: in file [ROOT]/includes/functions_oa_social_login.php on line 119: Undefined variable: settings
Warning: Cannot modify header information - headers already sent by (output started at /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php:3845) in /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php on line 4738
Warning: Cannot modify header information - headers already sent by (output started at /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php:3845) in /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php on line 4740
Warning: Cannot modify header information - headers already sent by (output started at /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php:3845) in /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php on line 4741
Warning: Cannot modify header information - headers already sent by (output started at /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php:3845) in /home/deb68701/domains/bianciona.com/public_html/paranormaal-forum/includes/functions.php on line 4742
Hopelijk kunnen jullie hier iets uit halen...

Re: Mod werkt niet...
Geplaatst: 02 mei 2013, 21:36
door Kevin
Heb je ook alle taalbestanden en de wijzigingen die in de taalbestanden gedaan moeten worden ook in de NL vertaling doorgevoerd?
Dus in de download zit misschien een map root/languages/en/ die bestanden die daarin staan moet je ook uploaden naar de languages/nl map op de server.
Het zelfde geld dus voor de wijzigingen die in de mod install staan voor languages/en bestanden, die moet je dus ook in de languages/nl bestanden doorvoeren.
Die foutmeldingen komen zo te zien door het ontbreken van een taal string.
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 08:23
door BianCiona
Heb ik ook gedaan, heb even gekeken en er zijn geen wijzigingen voor de taalbestanden...
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 08:32
door Ger
De MOD lijkt nu ook te werken, al valt-ie wel weg achter je header logo. Je moet die div dus even wat verplaatsen zodat het beter past.
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 08:36
door BianCiona
Ja, het staat er wel. Maar als je een account registreert dan krijg je die foutmeldingen... Ik heb 'm extra nog niet opgeschoven zodat gewone gebruikers nog even geen account registreren ermee want dat gaat niet...
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 09:28
door Ger
Ik heb even gekeken; het
lijkt gewoon een beetje buggy code. Probeer eens deze twee wijzigingen door te voeren in het bestand
includes/functions_oa_social_login.php
:
ZOEK
Code: Selecteer alles
$api_connection_use_https = ((!empty ($config ['oa_social_login_api_connection_port']) && $settings ['oa_social_login_api_connection_port'] == '80') ? false : true);
VERVANG DOOR
Code: Selecteer alles
$api_connection_use_https = ((!empty ($config ['oa_social_login_api_connection_port']) && $config ['oa_social_login_api_connection_port'] == '80') ? false : true);
ZOEK
Code: Selecteer alles
'PASSWORD' => htmlspecialchars_decode ($user_row ['new_password']),
VERVANG DOOR
Code: Selecteer alles
'PASSWORD' => htmlspecialchars_decode ($user_row ['user_password']),
Ik verwacht dat het dan wel werkt. Indien dat het geval is, dan hebben ze van oneall wel wat steken laten vallen. Voor een MOD in development niet zo erg, maar als je ervoor betaalt mag je verwachten dat ze zelf testen en debuggen.
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 09:30
door BianCiona
Zal ik doen, wel erg dat ze het zelf niet op orde maken

Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 09:36
door BianCiona
Thnx

Een account registeren werkt nu wel maar als je via het gebruikerspaneel je forum account aan een social media account wil koppelen krijg ik helaas nog altijd deze fouten te zien:
Code: Selecteer alles
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_oa_social_login.php on line 145: Undefined property: stdClass::$id
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4738: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4740: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4741: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4742: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 10:04
door Ger
Hmm, lijkt erop dat ook hier een verkeerde variabele wordt aangesproken (net als met de fouten in mijn vorige post). Ik kan dat zelf niet testen, maar het zit 'm waarschijnlijk in deze regel in
includes/functions_oa_social_login.php
:
Het zou kunnen dat dit moet zijn
of
Of iets in die richting. Je kunt daar een beetje mee spelen, maar ik kan zo niet zeggen wat het wel moet zijn. Het is data die wordt opgehaald op regel 128, maar ik kan niet zien wat daar precies in zit.
Als je er met een paar keer proberen niet uitkomt, zou ik zeggen dat je even support moet vragen aan de makers. Je betaalt ze niet voor niets.

Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 10:12
door BianCiona
De makers zeggen dat alles in orde is en het probleem bij mij ligt...
De code op lijn 127 en 128
Code: Selecteer alles
//Make Request
$result = self::do_api_request ($api_connection_handler, $api_resource_url, $args, 15);
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 10:25
door Ger
Ja, die code heb ik hier ook.
Anyway: het zou me niets verbazen als ze zelf de error reporting uit hebben staan, da's lekker makkelijk want dan zie je geen fouten.
Ik heb me nogmaals aangemeld (graag dus nogmaals verwijderen, heb me alweer ontkoppeld) en op zich gaat de hele procedure goed, behalve dan dat je die notice krijgt van regel 145. Het lijkt erop dat die waarde echter niet daadwerkelijk gebruikt wordt (buiten dat-ie wordt opgeslagen in de database, maar vervolgens niets meer). Wat je zou
zou kunnen doen is het volgende.
ZOEK
en vervang dit door
Dan sla je daar een unieke waarde op in plaats van een echte ID. Dat zou moeten werken als het inderdaad verder nergens gebruikt wordt, maar het is nogal hacky op deze manier. Ik zou mijn handen er niet voor in het vuur steken.
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 10:37
door BianCiona
Gedaan. Een account registeren gaat nu, maar hij logt je niet meteen in. Je moet eerst je e-mail nog bevestigen, dat hoort eigenlijk niet...
Als ik nu met Facebook inlog heb ik dat niet, dan kom ik op het forum maar dan ziet het hele forum er raar uit. Overal stukken weggehapt. Als ik dan ergens op klik ben ik weer uitgelogd (hij slaat mijn sessie dus niet op ofzo?) Als ik dan na een paar keer in- en uitloggen het account heb kunnen ontkoppelen dan is het forum gewoon normaal. Als ik hem dan weer koppel maakt hij een compleet nieuw account aan met erachter een 1...
Zou het misschien helpen als ik je de FTP-gegevens geef?
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 10:44
door Ger
Hmmm, waarschijnlijk wordt die $user_identity_id dan toch ergens voor gebruikt.
Met microtime is die iedere duizendste van een seconde anders, dus dat werkt dan niet. Alternatief om het te koppelen aan een gebruikers is dit:
Code: Selecteer alles
$user_identity_id = md5($social_data->response->result->data->user->user_token);
Met de FTP gegevens zou ik inderdaad meer kunnen testen, maar eerlijk gezegd hou ik niet zo van werken in de code van mensen die er zelf nog niet eens achter staan (niet jij, maar die van oneall). Het blijft een beetje trial and error, of jij het nu doet of ik.
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 10:48
door BianCiona
Heb ik gedaan, maar het heeft eigenlijk niks geholpen...
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 11:02
door Ger
Goed, volgende stap:
Je ziet staan
Code: Selecteer alles
$identity = $social_data->response->result->data->user->identity;
Zet op een nieuwe regel daaronder eens
En vraag vervolgens een pagina op waar je die foutmelding krijgt. Als het goed is zie je dan ook de inhoud van die
$identity
. Kopieer die eens naar hier tussen code-tags en haal vervolgens die var_dump regel weer weg uit je code.
Misschien dat we daar iets mee kunnen...
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 11:07
door BianCiona
Dit
met de var_dump:
Code: Selecteer alles
object(stdClass)#21 (17) { ["identity_token"]=> string(36) "bced8b8f-2365-452d-8e59-72aaa8a8a7d9" ["provider"]=> string(8) "facebook" ["source"]=> object(stdClass)#22 (2) { ["name"]=> string(8) "Facebook" ["key"]=> string(8) "facebook" } ["id"]=> string(54) "http://www.facebook.com/profile.php?id=100005120411878" ["displayName"]=> string(16) "Michel Heusschen" ["name"]=> object(stdClass)#23 (3) { ["formatted"]=> string(16) "Michel Heusschen" ["givenName"]=> string(6) "Michel" ["familyName"]=> string(9) "Heusschen" } ["preferredUsername"]=> string(16) "michel.heusschen" ["profileUrl"]=> string(40) "http://www.facebook.com/michel.heusschen" ["thumbnailUrl"]=> string(61) "http://graph.facebook.com/100005120411878/picture?type=square" ["pictureUrl"]=> string(60) "http://graph.facebook.com/100005120411878/picture?type=large" ["gender"]=> string(4) "male" ["birthday"]=> string(10) "12/24/1999" ["utcOffset"]=> string(4) "2:00" ["emails"]=> array(1) { [0]=> object(stdClass)#24 (1) { ["value"]=> string(25) "michelheusschen@gmail.com" } } ["urls"]=> array(1) { [0]=> object(stdClass)#25 (2) { ["value"]=> string(40) "http://www.facebook.com/michel.heusschen" ["type"]=> string(7) "profile" } } ["accounts"]=> array(1) { [0]=> object(stdClass)#26 (3) { ["domain"]=> string(12) "facebook.com" ["userid"]=> string(15) "100005120411878" ["username"]=> string(16) "michel.heusschen" } } ["photos"]=> array(4) { [0]=> object(stdClass)#27 (2) { ["value"]=> string(61) "http://graph.facebook.com/100005120411878/picture?type=square" ["size"]=> string(4) "2:XS" } [1]=> object(stdClass)#28 (2) { ["value"]=> string(60) "http://graph.facebook.com/100005120411878/picture?type=small" ["size"]=> string(3) "3:S" } [2]=> object(stdClass)#29 (2) { ["value"]=> string(61) "http://graph.facebook.com/100005120411878/picture?type=normal" ["size"]=> string(3) "4:M" } [3]=> object(stdClass)#30 (2) { ["value"]=> string(60) "http://graph.facebook.com/100005120411878/picture?type=large" ["size"]=> string(3) "5:L" } } } [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_oa_social_login.php on line 195: Undefined property: stdClass::$is_verified
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4738: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4740: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4741: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4742: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_oa_social_login.php:142)
En dit
zonder de var_dump:
Code: Selecteer alles
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_oa_social_login.php on line 194: Undefined property: stdClass::$is_verified
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1046: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4738: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4740: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4741: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4742: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3845)
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 11:22
door Ger
Aha. Nu gaat het om een andere variabele
$is_verified
. Die zit er ook niet in.
Zoek naar:
Code: Selecteer alles
$user_email_is_verified = ($email->is_verified == '1');
En maak ervan:
Re: Mod werkt niet...
Geplaatst: 03 mei 2013, 11:25
door BianCiona
Heb ik gedaan maar krijg nog altijd de melding dat ik het e-mailadres moet bevestigen...
The account has been created. However, the forum settings require account activation.
An activation key has been sent to your email address.
Ik zie nu wel dat ik ingelogd blijf en dat het koppelen lukt 