Forum Homepage › Forums › Community › Bug Reports › Infinity 'widget.js' bug upon logout from dashboard
This topic contains 2 replies, has 2 voices, and was last updated by
rossagrant 1 year, 7 months ago.
-
AuthorPosts
-
November 13, 2011 at 5:33 pm #617
Hey Marshall, Bowe!
Well I’ve finally built my first theme with Infinity and am ready to roll it out to production, but I have come across a little quirk I want to fix before I do so.
I discovered a bug last night when I tried to log out of the site from the backend.
If you logout from the dashboard you will come across 2 scenarios.
1. You’ll see a page not found error
2. You might see this error:
Error in PHP Script
/wp-admin/admin.php
filesize() [function.filesize]: stat failed for /home/mytestsp/public_html/wp-content/uploads/exports/act-on-this-infinity/widgets.jsError Type: E_WARNING
Source File: /home/mytestsp/public_html/wp-content/themes/infinity/base/pie/lib/schemes/scheme_enqueue.php Line: 230
Line 225: // styling enabled?
Line 226: if ( $policy->enable_scripting() ) {
Line 227: // path to script source for this policy
Line 228: $script_path = $policy->registry()->export_js_file()->path;
Line 229: // register if it exists and has content
Line 230: if ( Pie_Easy_Files::cache($script_path)->is_readable() && filesize( $script_path ) > 0 ) {
Line 231: // add it
Line 232: $script->add(
Line 233: $policy->get_handle(),
Line 234: $policy->registry()->export_js_file()->url
Line 235: );
Call Stack:
#0 (): Pie_Easy_Error_Handler::handle_error()
#1 /home/mytestsp/public_html/wp-content/themes/infinity/base/pie/lib/schemes/scheme_enqueue.php(230): filesize()
#2 /home/mytestsp/public_html/wp-content/themes/infinity/base/pie/lib/schemes/scheme_enqueue.php(130): Pie_Easy_Scheme_Enqueue->setup_internal_scripts()
#3 /home/mytestsp/public_html/wp-content/themes/infinity/base/pie/lib/schemes/scheme.php(269): Pie_Easy_Scheme_Enqueue->__construct()
#4 (): Pie_Easy_Scheme->init_enqueueing()
#5 /home/mytestsp/public_html/wp-includes/plugin.php(405): call_user_func_array()
#6 /home/mytestsp/public_html/wp-settings.php(285): do_action()
#7 /home/mytestsp/public_html/wp-config.php(99): require_once()
#8 /home/mytestsp/public_html/wp-load.php(29): require_once()
#9 /home/mytestsp/public_html/wp-admin/admin.php(30): require_once()Just browsing the site on a couple of occasions I have seen the same or a similar error too, calling widget.js
Any idea what it is that’s causing that.
It seems that the theme is expecting a file called ‘widget.js’ to be in the uploads folder but it isn’t present.
Either it’s needed and missing or this call needs removing.
the expected behaviour on logout is to see the homepage or login widget, so I’d be really happy if we could find out what the issue is here.
Loving Infinity though. Check out my test site at http://www.mytestspace.me
It’s a heavily customised child theme but so far so good.
Looking forward to all future upgrades. just praying that nothing will break when we do get upgrades!
I have 2 other quirks, I’m going to open seperate posts about.
thanks and great job guys!
Ross
November 14, 2011 at 3:47 pm #641Ross,
We are putting out a new release soon which has completely dropped the code in question, so that should fix it, at least in that incarnation
Marshall
November 14, 2011 at 3:49 pm #642Nice one Marshall!
It’s one of the only things to fix before I put this out on my productions site now.
That and this search problem with the pagination stripping the + signs from the search:
http://community.presscrew.com/discussions/topic/wp-search-quirk/
Any idea on an ETA?
-
AuthorPosts
You must be logged in to reply to this topic.