Joolee
Forum Replies Created
-
I also changed line 19 & 20 to:
if ( $data && ($unserialized_data = @unserialize( $data ))) {This prevents the system from giving an error when updating a plugin. I don’t know the details of the problem but this seems to work.
Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] undefined errors hearde already sentChange includes/classes/clearin-routines.inc.php line 24 into:
$cache = glob (WP_CONTENT_DIR . "/cache/qc-c-*-" . md5 ($host_uri) . "-*"); /* Match md5_2. */ if(is_array($cache) && count($cache)) $cache = $cache[0];includes/classes/admin-notices.inc.php line 99:
if (!$page || "*" === $page || $pagenow === $page || (isset($_GET["page"]) && $_GET["page"] === $page))Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] undefined errors hearde already sentI think I’ll just dump all bugs and their fixes here π
The clear button in the admin bar doesn’t work because of a JS change in newer WP.
Open includes/classes/menu-pages.inc.php
Replace on line 242 the word ajaxurl with:\''.admin_url('admin-ajax.php').'\'But when that’s fixes, you still have an ‘undefined’ error in the ajax response.
includes/classes/purgin-routines.inc.php line 68.
Put the folowing on a new line before the foreach.$error = '';//Edit:
Hit another one in advanced-cache.php on line 85else if (QUICK_CACHE_DONT_CACHE_QUERY_STRING_REQUESTS && strlen ($_SERVER["QUERY_STRING"]) && !isset($_GET["qcAC"]) && !(count ($_GET) === 1 && isset($_GET["qcABC"])))Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] undefined errors hearde already sentThis are only errors that will be shown when all errors are shown. The default for production servers will hide these errors and you can just run the software.
Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] undefined errors hearde already sentAlso:
includes/classes/advanced-cache.inc.php
Add the folowing before line 41’s foreach.$uris = '';And change line 50 of advanced-cache.php (gets generated in your wp-content when enabling the plugin) into
if (!QUICK_CACHE_ALLOW_BROWSER_CACHE && !isset($_GET["qcABC"]))//Edit:
Change lines 182-184 of includes/classes/readmes.inc.php intoif (isset($readme[$path]) || file_exists ($path)) { if (!isset($readme[$path])) /* If not already opened, we need open it up now. */Change line 30 of includes/_xtnls/markdown/nc-markdown.inc.php into
$parser_class = 'NC_Markdown_Parser';Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] What is status of Quick Cache?The last update in the SVN was 12 months ago. Maybe someone else can take over and apply a few bug fixes.
I don’t know how this SVN stuff works, otherwise, I’m willing to do it.
In the mean time, these topics should help
http://wordpress.org/support/topic/undefined-errors-hearde-already-sent?replies=2#post-3781673
http://wordpress.org/support/topic/plugin-quick-cache-a-wp-super-cache-alternative-definedisallow_file_edit-true-kills-the-plugin?replies=14Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] undefined errors hearde already sentChange the following lines
admin-css-js.inc.php line 20:if (isset($_GET["ws_plugin__qcache_menu_pages_css"])) /* Call inner function? */admin-css-js.inc.php line 28:
if (isset($_GET["ws_plugin__qcache_menu_pages_js"])) /* Call inner function? */menu-pages.inc.php line 278
if (isset($_GET["page"]) && preg_match ("/ws-plugin--qcache-/", $_GET["page"]))menu-pages.inc.php line 304
if (isset($_GET["page"]) && preg_match ("/ws-plugin--qcache-/", $_GET["page"]))Same sloppy mistake made for all errors.
//Edit:
Also,
Change line 27 in menu-pages.inc.php to:$updated_all_options = false; if ($verified || (isset($_POST["ws_plugin__qcache_options_save"]) && ($nonce = $_POST["ws_plugin__qcache_options_save"]) && wp_verify_nonce ($nonce, "ws-plugin--qcache-options-save")))I have changed lines 15-26 of inc/secure.php to:
//set a global variable if this is a call from InfiniteWP $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' ); $data = base64_decode( $HTTP_RAW_POST_DATA ); if ( $data && ($unserialized_data = @unserialize( $data ))) { $iwp_action = $unserialized_data['iwp_action']; } if ( isset($iwp_action) ) { $isIWP = true; } else { $isIWP = false; }Forum: Plugins
In reply to: [Enable Media Replace] Not compatible with WordPress 3.5's new media managerI had to change line 57 (65 now actually) to:
` if ( !is_null($current_screen) && $current_screen->base == ‘post’ && $current_screen->post_type == ‘attachment’ ) { $on_media_edit_screen = true; }I got errors on response to the “query-attachments” ajax call when editing a gallery.
Forum: Hacks
In reply to: WP 3.5 and Hiding Media TabsI like the new media manager but i dislike that it’s not extendable π
I’d like to modify the options displayed when embedding media but it’s all javascript now and I can’t find a way to plug in to that.
Previously, we could register a new “attachment_fields_to_edit” filter.