« first day (1093 days earlier)      last day (3840 days later) » 

5:47 AM
Anybody out here?
Free to talk about a problem, we're tracing from yesterday
2
Q: js Conflict in admin panel - I guess it's from the core WP installation

Mayeenul IslamA client's site: causing serious js conflict or js loading disabilities, is under custody. Activating DEBUG, Deactivating all Plugins, and Activating Default theme "T13" found that, still the problem resides. The DEBUG is totally fine - no disabilities or mis-functionalities. It was in an Old WP ...

It's still showing will all the default Theme and no plugin -
* Uncaught SyntaxError: Unexpected token ILLEGAL load-scripts.php:3
* Uncaught SyntaxError: Unexpected token var load-scripts.php:10
 
6:38 AM
@toscho Are you there?
I tried Exporting all the contents of the site in Firefox, but it halts with a dead end page saying:
`Firefox can't find the file at http://countrynews24.com/live/wp-admin/export.php?download=true&content=all&cat=0&post_author=0&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&submit=Download+Export+File.`
Tagged: @s1lv3r, @kaiser
 
7:19 AM
@Rarst: can you assist me in this problem?
 
no ideas without debug... I would check file throwing errors manually
also try SCRIPT_DEBUG, sometimes concatenation is acting crazy and debug mode kills it
 
@Rarst if you feel interest I can send you the admin details?
the problem is now truly with admin pane
*panel
 
I can look but weekend/sleepy :)
 
contact@rarst.net
 
7:24 AM
thank u so much
sent the mail
oops, forgot the path:
http://countrynews24.com/live/wp-admin/
 
add define('SCRIPT_DEBUG', true ); to config
 
I'm on it
gimme 2 min plz
added
@Rarst
 
poke admin, seems better
 
:)
now actually it's my duty to fix it
no body is with me
 
sometrhing it wrong with concat
 
7:36 AM
if the WP is fixed, then I'll go for the theme dev
but I found the WP is causing problem
Any suggestion how can I proceed with it?
 
it's not really "fixed", it's just that dev version of scripts and disabled concat works. hard to say, concat is messy and needs a lot of debug to understand what is going wrong
 
@Rarst Thank you very much for a nice solution though not permanent.
I got it by this:
http://wordpress.org/support/topic/so-it-isnt-bad-to-keep-script_debug-true-in-a-production-blog-right
@Rarst Thank you soooo much! I loved being a disciple this time like previous...
Thank you.
 
you are welcome :)
 
 
2 hours later…
9:55 AM
Is there any harm on running stripslashes on a string more than once or when magic quotes are disabled?
Or do I need to check get_magic_quotes_gpc() every time?
 
WP functions as thou magic quotes are always on regardless of server config. there was discussion about killing it, don't think it happened yet.
I think if you strip repeatedly you will end up without any slashes in string at all
 
So I should always check for get_magic_quotes_gpc() before stripping and ensure that I don't run stripslashes more than once?
 
I don't remember if there would be a point to such check in WP environment. in a nutshell slashing on input needs to match unslashing on output. APIs mostly do this quietly in background.
 
10:12 AM
I'm retrieving data from a submitted form and inserting it into the database using the $wpdb methods
The Codex page seems to indicate that I should do the magic quotes check
 
@Rarst Question about your answer here: wordpress.stackexchange.com/a/114141
Doesn't no-results.php do the same?
Is it like content-none.php replaced no-results.php?
nvm, just found out: "no-results.php [was moved] into content-none.php for consistency."
 
10:56 AM
@bungeshea JSON encoded strings.
We are not Stack Overflow II for question blocked users. Please fix your issue on SO. — toscho 44 secs ago
Boy, I hate that.
 
 
2 hours later…
1:26 PM
Pretty muddleheaded post. But to a certain extend he is right.
 
Then please explain me what he says. I don't understand a word. Like reading Picasso.
 
He is talking of inline script tags ...
 
"tzdk" or "webaware"?
 
tzdk
he says your method can result in this:

<body>
<script>
// plugin js code using jquery ...
</script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</body>
If a plugin directly outputs js code using a inline script (which a lot of plugins do).
 
Yeah. That can happen - true story. Never understood why people do that aside from demos.
 
1:36 PM
I do it a lot, too.
The easiest way to get a php value directly to js. When you only need to set a single variable sometimes using ajax is to much I think.
For example when you need the post_id in JS for some reason ...
Nowadays I mosttimes use jQuery data-attribut for this, but in older code I still see this alot.
 
@s1lv3r wp_localize_script( $handle, 'objectName', array( 'postID' => get_the_ID() ); ... not that hard.
@s1lv3r and you don't need AJAX for that
 
@kaiser Interesting. Didn't know of that.
 
Simply call objectName.postID in your registered/enqueued script
It only does one thing (explained that to GhoastToast just two days ago): Cares about adding a <script type="text/javascript">var objectName = { postID : 1234 };</script> right in front of your loaded script. Then you have global access to it on every script that is loaded afterwards. The WP way of moving PHP => JS.
 
yeah, really nice. A shame I didn't know of it before.
 
Inside admin you have it even easier: wp is a global object containing all currently running APIs like heartbeat for e.g. Then you got dozens of other globals like pagenow, typenow etc. - basically all the globals you know from PHP.
 
 
1 hour later…
3:02 PM
Still no joy: Parse error: syntax error, unexpected T_FUNCTION in *snip*/fixcommentlink.php on line 10 with line 10 being add_filter( 'get_comments_link', function( $link, $post_id ) Scott Helme 56 mins ago
@ScottHelme Your PHP version is very outdated. Upgrade to 5.5 or at least 5.4. Your version 5.2 is insecure, slow, and missing features. — toscho 46 mins ago
hehe
 
 
2 hours later…
4:38 PM
DNS is a giant spaghetti monster
 
 
7 hours later…
11:54 PM
@kaiser @all Mind to give your honest opinion on rules.zoomlab.it? Don't worry about being ruthless, I already know that some things on it are embarrassingly bad.
 
@G.M. Then please tell the "embarrassingly bad"-stuff up front, so we don't have to repeat it. Out for cigs, will be back in 5, so take your time :)
 

« first day (1093 days earlier)      last day (3840 days later) »