Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Pandos on January 17th, 2014, 01:49 PM

Title: Log throws errors
Post by: Pandos on January 17th, 2014, 01:49 PM
After upgrading to the newest version:
2: mysqli_query() expects at least 2 parameters, 1 given: Subs-Template.php Zeile: 588
Title: Re: Log throws errors
Post by: Nao on January 17th, 2014, 03:17 PM
Thanks! I didn't even remember not having fixed that one yet...
Title: Re: Log throws errors
Post by: Pandos on January 17th, 2014, 04:01 PM
Let's get another error :)

2: Missing argument 4 for wesql::insert(), called in /cache/php/Subs-Template.php on line 589 and defined File: Class-DB.php Line: 431
Title: Re: Log throws errors
Post by: Nao on January 17th, 2014, 05:10 PM
Oops, too quick of a fix then? ;)

I'll look into it once I'm back on my PC.
Title: Re: Log throws errors
Post by: Nao on January 17th, 2014, 07:23 PM
If you'te in a hurry to fix (and want to test before I commit...), you can simply edit the file, and add this after the 'insert(' line and before the array declarations:

Code: [Select]
'{db_prefix}pretty_urls_cache',

Yes, I actually managed to forget the table name... :^^;:
Title: Re: Log throws errors
Post by: Pandos on January 17th, 2014, 07:35 PM
No need to hurry, because I pull it live from BB to test if all is working to get you the time to do your things. So this is always an actual working copy to determine the status for you :)
Title: Re: Log throws errors
Post by: Nao on January 17th, 2014, 08:48 PM
Anyway, it's up ;)
Title: Re: Log throws errors
Post by: CerealGuy on January 22nd, 2014, 07:26 PM
Aaaand another one :D
Code: [Select]
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http:/xxxxxx/wedge/index.php?action=notification;show=latest
Apply Filter: Only show the errors with the same message 8: Undefined index: notifier_mentions_html
Apply Filter: Only show the errors from this file File: /home/xxxxx/xxxxx/wedge/gz/app/Class-Notifier.php
Line: 1
Title: Re: Log throws errors
Post by: Nao on January 24th, 2014, 05:43 PM
This would be triggered by a communication issue with the Mentions plugin.

Never happened to me at wedge.org, though...
Title: Re: Log throws errors
Post by: CerealGuy on January 29th, 2014, 09:04 PM
Latest Commit (just overwrote core)
Filter einschalten: Nur die Fehler mit der selben Nachricht anzeigen 8: Undefined index: jquery_version
Filter einschalten: Nur Fehler von dieser Datei anzeigen Datei: /home/**/wedge/gz/app/Subs-Cache.php
Title: Re: Log throws errors
Post by: Nao on January 29th, 2014, 10:11 PM
That was addressed by a fix I posted probably shortly after your message... It's in Load.php.
Title: Re: Log throws errors
Post by: CerealGuy on January 29th, 2014, 10:37 PM
Quote from Nao on January 29th, 2014, 10:11 PM
That was addressed by a fix I posted probably shortly after your message... It's in Load.php.
Works like a charm. Thanks :)
Title: Re: Log throws errors
Post by: MultiformeIngegno on January 30th, 2014, 01:23 AM
index.php?action=admin;area=serversettings;sa=proxy;save

implode(): Invalid arguments passed
File: /gz/app/ManageServer.php
Line: 539 and Line: 536
Title: Re: Log throws errors
Post by: MultiformeIngegno on January 30th, 2014, 01:33 AM
I don't even have that file (ManageServer.php) in my /gz/app folder..
Title: Re: Log throws errors
Post by: Nao on January 30th, 2014, 06:57 PM
Oh, nice...

Try replacing at line 536 (in /core/app) the explode("\n", part with preg_split('~\s+~',
This SHOULD work. Untested...
Title: Re: Log throws errors
Post by: MultiformeIngegno on January 31st, 2014, 12:33 AM
Quote from Nao on January 30th, 2014, 06:57 PM
Oh, nice...

Try replacing at line 536 (in /core/app) the explode("\n", part with preg_split('~\s+~',
This SHOULD work. Untested...
Nope.. still getting those errors when saving settings in Proxy area.
Title: Re: Log throws errors
Post by: Nao on January 31st, 2014, 03:39 PM
Nothing here...
I tried enabling and disabling.
I tried entering comma-separated, and line-separated.
Never got any errors.
Can you post the data you have in that page..? Because it's probably very specific, I suppose.
Posted: January 31st, 2014, 03:27 PM

Try replacing lines 535 through 539 (the ones that treat $_POST) with just this line:

Code: [Select]
$_POST['reverse_proxy_ips'] = !empty($_POST['reverse_proxy_ips']) ? implode("\n", array_filter(array_map('trim', preg_split('~[\s,]+~', $_POST['reverse_proxy_ips'])))) : '';

Does it work now..?
Posted: January 31st, 2014, 03:34 PM

I think it'll work. I think the 'bug' was related to supplying an empty block list where Wedge expected some contents. The quick fix would be to actually take the '' (two single quotes) at the end of line 535, and turn them into array() -- and voilĂ . But it still doesn't say why you didn't indicate any IPs in there... ;)