Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Class-WebGet.php on line 184

Warning: file_get_contents(): Failed to enable crypto in Class-WebGet.php on line 184

Warning: file_get_contents(https://wedge.org/files/current-version.js?version=1.0-beta): failed to open stream: operation failed in Class-WebGet.php on line 184
Show Posts - CerealGuy - page 2
Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - CerealGuy
Bug reports / [Aeva] Cache of Aeva-Sites
« on May 17th, 2015, 11:28 PM »
After the latest update (the youtube thing) i had to remove Aeva-Sites.php to get it working. Why does that stuff get cached outside of /gz/app?
Support / [Aeva] Need help implementing Soundcloud
« on May 10th, 2015, 03:14 PM »
Again i tried to implement Soundcloud into Aeva Media. And it's not really easy because debugging is a pain in the ass.  But that's another story.

In the moment i'm this far that i only need to get the "real" url over an api provided by soundcloud and replace the old url. But Aeva doesn't even perform my url lookup. I only need to extract everything between "url=" and ";".

Example lookup url: soundcloud.com/oembed?iframe=true&url=http://soundcloud.com/erasedtapes/olafur-arnalds-poland

My current array is this:
Code: [Select]
'id' => 'scld',
'plugin' => 'html',
'title' => 'Soundcloud',
'website' => 'http://soundcloud.com',
'type' => 'video',

'pattern' => 'http://(?:www\.)?soundcloud\.com/([\w-]+)(\/[\w-]+)?/?',
'movie' => '<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=$1;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>',
'ui-height' => 0,
'lookup-url' => 'url=(.*);',
'lookup-actual-url' => 'http://soundcloud.com/oembed?iframe=true&url=$1',
'lookup-pattern' => 'url=(.*);',


Plugins / [Plugin] MoreRecyclingBins
« on April 6th, 2015, 02:28 AM »
Sometimes you need more than one Recyclingbin, for example
if you want to move Topics of a specific board to another
recyclingbin as the rest. And this is what this plugin does.
You can define new Recyclingbins for some affected boards.

This is a more special plugin, but maybe useful for someone.

apply_plugin_mods() destroys the Settings.php when an error occurs.

array_diff() needs two arrays as arguments but only gets one (the other one is the plugin string).
Code: (Subs-CachePHP) [Select]
$enabled_plugins = array_diff($enabled_plugins, $plugin);
I changed it to
Code: (Fix1) [Select]
$enabled_plugins = array_diff($enabled_plugins, array($plugin));
but perhaps something with array_search and unset would be better.

And updateSettingsFile() wants an assoc but it gets something weird:
Code: (Subs-CachePHP) [Select]
updateSettingsFile(array('my_plugins' => $my_plugins = implode(',', $enabled_plugins)));

I changed it to
Code: (Fix2) [Select]
updateSettingsFile(array('my_plugins' => implode(',', $enabled_plugins)));

Will create a pull request...

Includes some other fixes
Archived fixes / Incompatible with newer PHP Versions
« on February 2nd, 2015, 09:38 PM »
I noticed a month ago that wedge doesnt work properly with newer php versions than 5.5+.
I wasnt able to activate more than 1 plugin (I think there were some problems with array_diff?!) so if you have the same problem, probably downgrading your php does the job.
Bug reports / [Plugin] users_online_today some bugs
« on January 12th, 2015, 05:28 PM »
Found some bugs in this plugin.

Code: (OnlineToday.php) [Select]
case '7d':
$earliest_type = time() - 604800;

I think that should be "earliest_time".

2. The plugin uses systemtime (time(), strtotime()) therefore there's no need to substract the timezone settings. This error might not appear for some, but they just have those settings set to 0.

Untested solution:
Code: (OnlineToday.php) [Select]
switch ($settings['uot_type'])
$settings['uot_type'] = 'today'; // This is deliberate, falling through to 'today' because that's what to use in the event of an invalid type being used.
case 'today':
$earliest_time = strtotime('today');
case '24h':
$earliest_time = time() - 86400;
case '7d':
$earliest_time = time() - 604800;
Dont want to fork wedge/plugins, otherwise i would open up a pull request. Im not sure if last_login uses forum time or system time. But however, something is wrong with this plugin.
'last_login' => time()
Changed my solution.
Features / No overwrite of files
« on January 6th, 2015, 07:27 PM »
Overwriting the files everytime is a bit bad if you want to set file permissions on unix without acl. How about editing the files instead of overwriting them every time?! Everytime i enable a plugin, the permissions of Settings.php change. Same for /gz/*.

EDIT: Just tried it locally, for me file_put_contents doesnt overwrite the file, if its already there. But why the hell does it remote :hmm:.

EDIT2: Ignore this, and feel free to remove this topic. Its full of rubbish, im sorry for that...
EDIT3: This really happens, but probably only to Settings.php because wedge first creates that temp file and later removes Settings.php and renames temp file to Settings.php.

Story behind that: i put latest wedge on a server of a friend, but it behaves really mysterious. Im not able to enable more than one plugin, and also it doesnt show the right button when first activated. I really dont understand why this happens. Already tried to reinstall wedge, but doesnt help. This is really strange and maybe not a problem with wedge itself, but a bad configuration...
Archived fixes / updateSettingsFile in install.php
« on January 6th, 2015, 02:17 AM »
In refer to http://wedge.org/pub/support/8744/install-problem/msg296767/#new

Pull Request: https://github.com/Wedge/wedge/pull/25

EDIT: umm having some troubles here, not sure if this really fixes it. Perhaps test it again, getting some errors here in the moment, but not sure if its because of this.
Plugins / [Plugin] CountLikes
« on December 27th, 2014, 06:43 PM »
This Plugin basically shows in profile summary how many likes this user gave/receieved. You can also view those posts.

Currently you cant modify Files like Class-System,QueryString,Subs,Errors,Load etc. because $context['enabled_plugins'] isnt inited yet. Perhaps that should be done before loadSource ever got called?!
Archived fixes / Template modification not working
« on December 23rd, 2014, 10:47 PM »
Template modifications via plugin arent working because apply_plugin_mods only gets called when core file is newer than the cached file or the cached file doesnt exist. I'm not 100% sure, but probaby some template cache flushing is needed when enabling a plugin :hmm:.

ManagePlugins.php, clean_cache('php', '', CACHE_DIR . '/html'); is needed in enable and disable plugin. Than it works correctly. But why do you clean everything?
But here two improvements:
1. If plugin has no mods.xml you dont need to clean the cache
2. Only delete files which are in mods.xml

Plugins / [Mod] MinSearchLength
« on December 10th, 2014, 10:19 PM »
The default minimal length for words is 2, which sometimes is not short enough (think about movie names, numbers...).
With this mod you can change that number to whatever you want.

Features / Quick Reply - Switch to "real" editor
« on November 17th, 2014, 05:03 PM »
Found no way to switch from quick reply to the real full editor. Only if you press preview you can add some attachements for example. Perhaps there would be a better way?
Plugins / [Plugin] No Print for Guests
« on October 19th, 2014, 01:47 PM »
No Print For Guests

Simple plugin which disables print function for Guests. Nothing more.


Drop nopluginforguests folder into /wedge/plugins and activate it via ACP.

Archived fixes / PrintPage parsebbc doesnt know postid
« on October 16th, 2014, 10:43 AM »
In PrintPage parsebbc gets no info about the processed post id.
$context['posts'] = array();
while ($row wesql::fetch_assoc($request))
// Censor the subject and message.

$context['posts'][] = array(
'subject' => $row['subject'],
'member' => $row['poster_name'],
'on_time' => on_timeformat($row['poster_time'], false),
'timestamp' => $row['poster_time'],
'body' => parse_bbc($row['body'], 'post', array('print' => true)),

if (!isset($context['topic_subject']))
$context['topic_subject'] = $row['subject'];
Add id_msg to selected fields in query and
'body' => parse_bbc($row['body'], 'post', array('print' => true'cache' => $row['id_msg'])),