It triggered a fatal error. Again!
by Patriek Jeuriens · Leave a CommentWhen I deactivated my plugin and reactivated it, the following error popped up: Plugin could not be activated because it triggered a fatal error. The weird thing is that the debug frame that should show the errors causing the plugin activation to fail was blank. There were no errors in my php_error log either.
This is the second time this lunacy had me baffled. Everytime it takes me at least 30 minutes to figure out why it happens. When $wpdb->show_errors(); is defined in your plugin, it won’t activate. Not sure why, but it just won’t activate. Removing the line allows you to reactivate normally.
Wordpress Video
by Patriek Jeuriens · Leave a CommentI was working on the backend of my highslide plugin, which has never came out of beta yet, and I found that the code was very difficult to manage. So I decided to take all that i’ve learned and start over. While this will be a significant setback in terms of time it will be a great advance in terms of stability. So far i’ve been working mainly on the backend, it allows you to upload and add streams to the database. The frontend will come later.
The framework has been build on three classes. Album, Video and Players. By using these classes it became so much simpler to manage. The video class is at the center of it all. So far i’ve got wmv, flv, swf, mp4 and youtube(hd) support build in.
Other plugins should be able to access the database by calling the video class.
$video = new pss_video;
$video->load(1);
$video->create_player();
The code above is an example of calling the API to create a video. The load function takes an ID of a video and populate the instance with data from the database. At present all videos are slided but I am working on normal embeds too.
Updated Nextgen Search to V0.0.2
by Patriek Jeuriens · Leave a CommentRuben pointed out that I left a var_dump in the code, so I’ve taken that one out. The variable didnt do anything but it’s a bit untidy.