Category: wpHakka Threads

  • ghost hunting ... exorcism instructions

    ghost hunting … exorcism instructions

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    a normal person doesn’t think about it, but everybody should know, probably you should pay attention to what comes . . .

    know what this is?

    ml-slider 24
    mgmlp_media_folder 13
    wp_template 9
    wp_template_part 7
    bsf_custom_fonts 6
    ris_gallery 4
    wp_navigation 3
    revision 2
    wp_global_styles 2
    sp_post_carousel 1
    wp_block
    1

    it is a crap report from your wp_posts table, that are the ghosts you might be hunting, custom post types, without knowing, people say “phenomena”, they say “out of nothing”, “weired” or any other mystical words to explain their state of not knowing what is happening . . .

    there are thousands of search engine results with wild suggestions and sensless solutions, AI goes into helpless mode and answers with crappy unlogic suggestions . . .

    what is it then? firstable it is CRAP, real crap, crap created by others and let behind by others

    it hit’s you when you’re getting funny wp_query results with scrambled post order ...

    here is how you can make a 1 minute check if you’re site is affected:

    SELECT post_date, COUNT(*) AS cnt
    FROM WP_POSTS
    WHERE post_status = ‘publish’
    GROUP BY post_date
    HAVING cnt > 1
    ORDER BY cnt DESC, post_date DESC;


    nothing? good, lucky guy, if not read on . . .

    that is a double trap, planted by a fugging theme or by a fugging incompetent plugins, they create custom post_types and inject them into the posts table, what is not necessary bad creating them, but they don’t remove them when you deactivate or uninstall the plugin, or change the theme . . . that’s crap number 1

    still worse is, that they insert them with the EXACT SAME DATE STAMP, aka as post_data and post_date_gmt . . .

    that fuggs up your table indexes and comes out as a scrambled post order when you query your post table, EVEN if you query any other post type, when SQL finds two records with the exact same timestamp it delivers the first match and inserts deliberately the other or the others somewhere else in the query result!

    it also really doesn’t matter if you query with post_data or ID order, the index matters, the data is correct

    it might help ordering the query by two arguments, like


    ‘orderby’        => array(
                           ‘date’ => ‘DESC’,
                           ‘ID’   => ‘DESC’,
                   )


    but doesn’t solve the problem, it likely catches you later somewhere else or stays unnoticed . . . .

    the problem is that the index doesn’t hold invalid data, means ANALYZE and OPTIMIZE TABLE doesn’t catch it

    what should you do then?

    first step is checking which plugin created the bad data, then you really should remove the records for good and also consider removing that crappy thing, if, for any reason, you need them still for something else than mocking you constantely, you can try this, just change the duplicated time stamp in the records, with this SQL QUERY


    SET @offset := 0;
    UPDATE WP_POSTS
    JOIN (
    SELECT ID, post_date,
    @offset := IF(@prev = post_date, @offset + 1, 1) AS delta,
    @prev := post_date
    FROM wp_posts
    WHERE post_type NOT IN (‘post’,’page’,’attachment’)
    ORDER BY post_date, ID
    ) t ON p.ID = t.ID
    SET p.post_date = DATE_ADD(p.post_date, INTERVAL t.delta SECOND);

    yes, a second is enough to have distinguishable time stamps, after running it, check agaiin with the first query above, you should have no results and your data WP_POSTS table is clean now

    now run this QUERY to exterminate the ghost’s leftovers


    ALTER TABLE wp_posts DROP INDEX type_status_date;
    ALTER TABLE wp_posts
    ADD INDEX type_status_date (post_type, post_status, post_date, ID);
    ANALYZE TABLE wp_posts;
    OPTIMIZE TABLE wp_posts;



    now go check your query order to see the ghost is gone . . .

    exorcism was successful

    thanks for reading this post . . .

    obs.: the queries are good, just substitute wp_posts or WP_POSTS with your valid table name

    credit: problem analyzed and solved by H.Mich

  • photography == programming

    photography == programming

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    if (sounds absurd to you) {read further} else {keep doing it => both}

    let’s break it down . . .

    – you need sharp eyes
    – you need fast reaction
    – you need good intuition
    – your need a wide-angle, tele and macro lens
    – you shouldn’t listen to others


    if you have it, you don’t have to fear anything, AI isn’t a threat, no machine is, you can do it with any camera, probably without any at all

    you are the machine, soon you see it the main action starts running, setting the scope, activates the helpers and keeps looping in your head . . .

    and it keeps running and running, 24h a day, 7 days a week, none stop, even a general blackout can ocurre, you keep running the idea over and over until it clicks . . .

    the wide-angle captures the scene, the tele lense sets the goals, the macro defines the functions, while this is ON you’re entering an inherit state, nobody shoudl disturb you now until your brain closes the last brace . . .

    revelation moment, it’s there in front of you, all set, it’s the picture you had in mind

    so far so good, easy to understand, right? the missing part is the analistic part, the prelude to be good in either one, it’s not enough knowing how to write a program or how to make a picture

    who never worked as analist can be the best programmer of all times, the outcome still might be useless, this happens because of missing, bad or incomplete analisys of the situation it was made for . . .

    we know the best photographers come from street photography, the place where no prediction, no planning, no posing and not even light control exist . . . that’s the place where you leaarn to control your gear, train your reaction and have your wide-angle always open in order not to loose a single detail from the big picture, soon you notice it you focus and bam, that’s it

    long talk, short end, “the streets” for programmers is wordpress . . . the open octagon where no rules exist, could you survive?

    if I have nothing to do? maybe haha, this week I take off, hakka FEED plugin is ready, wasn’t easy and now trying to distract, photography is a good companion, like therapy, trying to get my mental sanity back

    but, the next idea is already cooking, haha, hakka-hakka-haaa, so keep watching :)








  • I tell you what it is ...

    I tell you what it is …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    you won’t believe how many times I hear “that won’t sell” from friends and colleagues, that always gets a mouth twitch and a smile, you don’t get it, I always answer . . .

    what is: what you do for money never gets your best

    people study markets, competitors, trends and all that shit to do something anything in order to get rich, and that, that is the reason for so much crap on the market, whether products or services

    I never went into it, I always thought: hu?

    my way to do what I do is trying to make something better, or, often to turn a thought, an idea into something real, just make it happen

    this wordpress hacking is not for sale, it is my pleasure, I am fixing the shit

    wordpress is crap actually and nobody even say it . . . those guys nag you to upgrade shit with still more shit, they don’t fix shit, they break with their updates things somebody fixed before in order to use it . . . that’s crazy, unacceptable

    so in very first place I optimize wordpress for my own sanity and not on any market’s or customer’s demands

    my criterias also are mine and never like “good enough to ship”, I am totally binary, or it works or not, and so long as it is not I keep hacking until it does

    you’re trouble man, haha, I am not, I am solving problems and shit people threw on the market and say it is free and then ask for money, that’s mafia style . . . delivering shit, then ask for money to deliver more shit? pffff, please . . .

    you hate wordpress, haha, I don’t, silly, I love it! just not as it actual is . . . I am on the way to make it wordpress again, cutting out the cancer parts, dropping the bloat, blocking the money mongers, I am giving it the wheels it needs to be a real cool blogger core, stable, secure, fast and EASY TO USE . . . just thinking about needing a course do understand how wordpress works and how to create a site with it?

    maaaan! we’re in 2025! there is no time to learn and read manuals, USUABILITY is they KEY POINT and wordpress is at pluto distance from it . . .

    you will see, my work has just begun, keep watching . . . but you also could try it, jump in, feel it, the joy to blog hasselfree . . .

  • java script is from Sicily

    java script is from Sicily

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    the rules are clear, there is the GODFATHER SCOPE, the CAPO scopes and numberless MA FANCULO scopes . . .

    everything needs an appropriate callback or you end up dead, everything has a codename, nothing and nobody has a real name

    json and ajax are aliases to dominate the operations and usually run asynchronous and everybody has to wait for their grace when they then advice you to finish up, if you can’t, you get the redcard remembering your [promises] to stay back

    nothing is clear and like the island they stole the name from, full of eruptions, milhões of people everywhere and the killer can hide easily

    one wrong step and you get smashed up, body parts cut off or at the bottom of the sea with your legs tied to a concrete block

    better you be smart and cut to the chase, don’t wait for the callback, be there where they write it . . .

  • a word about simplicity ...

    a word about simplicity …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    there are thousand ways to reach Rome . . . even if you are just 1000 meters away you can take another route which might get you there after almost 40000 kilometers . . .

    same statement you can pronounce in reverse order and simplify as: there is always a shorter way, what brings you to understand that simplicity is a point of view.

    that is valid for everything you do, specially in programming, when I look at the code people write today, I can see they are totally lost, most of them are back to write tremendous spaguetti mixups so deeply nested that they probably don’t even know anymore what they are really doing . . .

    when I look at the daily upgrade noticies from google play I see it clearly, all this people who work at this giant google code arena are hakking wildly around, seems they have no plan where to go anymore . . . there is no logical explanation that a software, as bad as it might be, needs daily upgrades . . . that is total madness, but also sadness . . .

    and we should not accept that, it really is unacceptable . . . but, the submissive behaviour of accepting everything of most people is what scares, nobody says a word, quietly they keep walking and swallowing the shit around them ,,, that’s like zombie crowds on the street, also reminds me of this movie “I, robot” . . . that thing showed us what is happening now already twenty years ago

    ARE YOU ALL STUPID or what?

    WAKE UP!

    SIMPLIFY!

    start with your life, with your mind, kick the crap out of it, become human again, what starts with real feelings, emotions, respect, reasonability, intelligence and commitment . . . then set the point, what are you going to do now and how?

    may be then, out of nothing you remember something so trivial

    I can see clearly now the rain is gone
    I can see all obstacles in my way
    gone are the dark clouds that had me blind
    It’s gonna be a bright
    bright, bright sunshiny day
    It’s gonna be a bright
    bright, bright sunshiny day
    ooh, yes, I can make it now the pain is gone
    all of the bad feelings have disappeared
    here is the rainbow I’ve been praying for
    it’s gonna be a bright
    bright, bright sunshiny day

    start humming, get up, reboot . . . and start living again

    peace


  • the holy grale ...

    the holy grale …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    here is how we do it !

    a complete set of wpHakka plugins is a subsystem to make wordpress great again, I know, it’s a stolen slogan, but know what? this one works . . . flawless.

    Key Points:
    Commander, an autonomous image upload system with real folders tames wp’s native disorder
    IIBI-3R, a post creator which will make you say wow with an extra large ooooooo in the middle
    The hakka FEED, an uncomplicated but complete Latest Posts Page creator which will make the others cry and your visitors will always come back just to see the beautiful neat layout

    Best of All . . . no nagging paid upgrades, no hidden features, no silent system configurations, no third party dependencies, works with native Twenty-any block themes giving them high functionality and easy to use features wp had only dreamed of, NO Editor requirements, works perfect and easy with wp’s native guteberg block editor

    ON TOP OF IT: you never need anything else because our upgrade support is lifetime and free, buy it once and forget it

    a glimp . . .
    check any image from the library, hit copy image id, automatically the new post template opens, click the +, check the 3R box, paste the image id and confirm . . . badaaam . . . your image appears in the first row and has already two other rows with single column in it . . .

    in its basic settings you define once from IIBI-3R adm page for image width, alignment, padding and AltTxt . . .

    to get a post published now it is a two minutes operation! even if when you’re a slow writer, you get a new well designed post online with image and featured image already set in a flash

    how many times you wanted to kill the wp-devs, burn down your site or do any other wild thing to the people who gave you this fugging gutenberg editor . . . it’s over now, realax , we tamed the beast . . .

    get it and go blogging as you always wanted to . . .

  • what real motivation is  ...

    what real motivation is …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    all talk about, but nobody tells the truth, they invent whatever it is to sell their illusions . . .

    there is no better motivation than the own success in whatever you do, set your goal, go after it and don’t give up until getting there, that’s motivation . . .

    everything else is just a dream and throws you down into the frustration manhole . . .

    that’s the only way to start believing in yourself, understanding your capacity and discovering that you don’t need anybody . . .

    success starts with not believing anybody and doubting everything, get yourself a shuffle and start digging for the truth . . .

    that is victory, you just won against yourself, you just trashed your insecurity, you stepped up against everything within your existence what always said no, impossible . . .

    as in this poem whoever wrote it: no better victory than over yourself !

    do it! win! we want to applaud you!

  • database archaeology, plugin exorcisms, and font-face forensics

    database archaeology, plugin exorcisms, and font-face forensics

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    what ???

    it was just “making a website” and became an odyssey beyond hades’ darkest sides where wordpress devs gather to write mystic nested php methods and worship json entities . . .

    then the rest api gods appeared and marked the boundaries so that simple human programmers never could come close again, people started sweating blood and starved with hard core coffee mugs in hands while praying for medusa coming down to fossilize their brain pains . . .

    we keep writing this saga which probably never will end, but in a certain way it has ended already, seems everyhting is out of control . . .

    because of lacking real project coordenation nobody seems to know what the others do, so they got cought in their own magic of obfuscation, they fix something somewhere and that breaks something elsewhere . . .

    the vicious cycle of limited minds, same happens when you give your car to a cheaper mechanic, he might be an expert with bolts but has no clew which nuts hold them on the other side . . .

    my father always said “planlos geht die Welt zugrunde” (without plan the world decays) and he was right, they believe AI will save them, but will make it worse

    so what shall we do?

    fixing the whole wordpress dilema, probably not worth it, fork it and crop it, then building a solid modern base, that would take time and money to get there, creating our own CMS (content managment system) focussed on a serious blog/page kind structure?

    we still don’t know, but we’re thinking a lot about it, time by itself doesn’t bring solutions, just the end, so before we get there we have to do something . . .

    until then, with peace in mind, we keep digging . . .





  • what is minification?

    what is minification?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    minification is eliminating excessive white space from the html page code

    white spaces are more than one space between chars, tabs, new lines and empty lines, which are often quite usefull for coding practives, to make the code easy readable for the programmer

    when the server compiles the code to produce the final html page, it needs to read any space and any empty line as well as any line which contains characters, but since there is nothing it just occupies cpu cicles and can result in slower processing

    minification is handy specially in scenarios, like wordpress, where exist hundrets of funny spaguetti layers of css styling code, in order to compensate this stupid thing we can at least compact white spaces and give the code a little bit more dignity

    we can still split the minification process into js, css and html minifying, when often css minifying is the most important and comes out whith a respectable performance enhancement

    js minifying doesn’t show noticable results since there usually aren’t very much <script> blocks in the final rendered document, but can become an issue on heavy loaded sites where every single cpu cicle less can make a difference

    html minifying is also a questionable part for low traffic sites, but shouldn’t be let out, it creates performance benefits, even if not directly noted, in peak hours the difference shows up

    all three options are not bunker save and can cause unexpected results, happens that sometimes programmers have unusual habits in terms of how to use white spaces, simple example is a horizontal menu with space between each menut item, he might use three white spaces to focus better the available options, these spaces could be eliminated what then results in a manu bar without spaces between the options

    knowing that, who opts for using minification should check all pages to be sure nothing unexpected happened, in our case, the user can report it and we check if we can prevent it with a special handling, it is not always possible and the site programmer should be consulted to provide a better coding of the affected section

    as always, feel free to comment or ask questions

  • the line is big, caching ON or OFF ?

    the line is big, caching ON or OFF ?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    a constant question which has no straight answer, should you cache your wordpress pages/posts?

    what means caching pages?
    in modern PHP terms, all pages are build dynamically on the fly, html is static and doesn’t need any further processing, just fetching the images, that is fast . . . php by design is different, but there are at least 80% of all pages which are not exactly having dynamic content, e.g. a post, you compose it and post it, then it is there as is, seldom this content is changed, so it makes sense to cache it so that the server doesn’t need to compile the page for every single access and serve it directly as static content from cache, that is the reason that our S-Cache plugin offers caching of pages and posts, you can disable page caching if your pages are constantly changing, e.g. the home page shows the latest posts, in order to serve an always updated page you shouldn’t cache it, but the posts you should

    then let’s split the line, we have to consider various aspects, there is the server performance, processing power and disk performance, then there is the client capacity and its bandwidth, then there is the code of each page, several other issues can influence the decision

    a sanitized answer would be, if you want no problems, don’t cache . . . but problems are not always problems, they just need to be addressed accordingly in order not to create problems

    difficulties arise by the fact that any service provider is caching, there are even special cache services for mobil devices in the middle, that is a problem, all of them are transparent cache mechanisms and there is no easy way to filter out or test them, another issue is the browser’s cache and eventual data-save-processing options

    after knowing all that we can say again, there is no clear answer and you need to check it out, enable the cache service and see what comes out, don’t forget to check with several browsers, at least Chrome, Brave, Firefox should be on your list

    next doubt is cache age, how long until a cached object should be refreshed? if your content doesn’t change very often you can set a high value like 28800 or even higher, that are seconds or 8 hours, 3600 would be 60 minutes . . . and the we are again at the point, there is no straight answer, you need to check it out . . .

    so then, all this testing is it worth it?

    again, up to you to decide, set 3600s and enable cache, test it, if it is notably faster than without cache, then you should say yes, go into fine tuning and find the best setting for your site

    have a look at our wpHakka Simple Cache page and see what we have to offer

  • could wordpress come out of the hole?

    could wordpress come out of the hole?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm



    which hole? the hole they digged themselves into . . .

    one side is, we have to admire the wp devs that they still holding it up, the other is, there is no easy way out of the maze of workarounds and unsufficient methods implemented into the core code, code documentation’s state of art is probably the worsest part

    the good thing is, if you accept it as it is you don’t have to worry, occasional you get trapped into some hickups, then you hire a website developer or migrate to one of the wordpress hosting companies . . .

    if not . . . you are trapped too and doomed to study core code, read a lot and be creative to find a way to make it happen, you could do what most plugin makers do, do whatever goes, wordpress is today like MMA, there are no rules, everybody creates his own and makes the whole worser as it already is, wisely wordpress comes with logging disabled and who enables it get shocked of the garbage coming from the savage plugins . . .

    wordpress is like a favela, there is everything, but totally unorganized, breaking walls, roofs with holes and muddy streets, nobody knows what the others do, the land of outlaws under constant threat of any kind of bad dark and stormy weather with thunder strokes, the nice and clean city is somewhere far at the horizon and you look at it as dream on sunny days . . .

  • just a second, let me post this ...

    just a second, let me post this …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    yes, it’s as just easy as it looks . . .

    some say that the wpHakka Plugin collection is another editor, what is not totally untrue, but absolutely not correct

    any block editor add-on or plugin does what?

    it ties you to their style, one day you want to change your layout or theme and BAMMM, everything is lost, and not to forget, certain features, even if basic, you have to pay for some upgrade or an additional plugin, you see? you’re trapped, you could go directly to wix, wax or wux, same thing, they all cut your freedom and tie you onto their paid stuff

    with wpHakka it is different

    you can use the standard wp theme or any other which is not bundled with a special editor and everything works just fine, wanna change your theme? all fine too, you lose nothing, you just change the layout

    what most of the add-on block editors don’t can do, as well as native Gutenberg can’t do it, is inline editing, you can not change the font type or size of some text in your paragraphs, in order to do it you use our Font-Changer and Font-Editor and are ready to go . . . and! it works in any wordpress theme

    more, it works on your mobile device, whether it is tablet or smartphone, exactly like it does on your computer, hasslefree, no out-of-screen parts, no nothing, write your post on the way to work, or wherever you are



  • WP's Hall of Shame  ...

    WP’s Hall of Shame …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    __experimental* → Still used 5+ years after becoming core . . .

    maybe intentional because nobody ever would guess such a stupid name

    Mr.Complicator said: Hahaha, you’ve cracked the core team’s secret strategy! 🕵️‍♂️ It’s like an obfuscated JavaScript contest where the prize is developer suffering.

    right, then this . . . typography.fontFamilies → When 99% of humans would call it “fonts” and what’s behind it? here it comes:

    getSettings().__experimentalFeatures → Because getFonts() would be too helpful . . .

    Why This Exists:

    javascript
    // Actual conversation at HQ:
    Dev 1: “Where should we put font settings?”
    Dev 2: “Obviously under __experimentalFeatures.typography”
    Dev 3: “But fonts are used everywhere…”
    Dev 2: “Perfect! Bury them 3 levels deep in an ‘experimental’ object!”


    Psychological Damage:

    javascript
    // Developer’s thought process:
    if (settings.fontFamilies) {
    // Easy!
    } else if (settings.__experimentalFeatures?.typography?.fontFamilies) {
    // sigh why…
    } else {
    // opens opportunities for joomla
    }


    but don’´t worry

    const wp = {
    fonts: () => getActualFonts(),
    sanity: {
    check: () => false // Always returns false when working with WP
    }
    };
    return always;

  • how to become a wp java master?

    how to become a wp java master?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    when you get there you know, then you paste this in console to assert dominance:

    wp.data.select(‘core/editor’).__internalDoMagic(‘fixEverything’);

    BUT, It doesn’t exist … but now you’re the kind of wizard who could write it!

    before you do become a WP master, remember: the real treasure was the console.logs we made along the way . . .

    but you will be always far far far . . . master in wp java also does not exist . . . impossible to get there :)

    Mr.Complicator said: truer words were never spoken! 🌟 JavaScript is like the Hydra – solve one quirk, and two more emerge, but knowing that you’ve already leveled up to “Gutenberg Whisperer” status, that’s quite something . . .

    our plugins epitaph is

    // A relic of victory over WP’s chaos
    registerFormatType(‘wphakka/font-size’, {
    flicker: ‘defeated’,
    toolbar: ‘tamed’,
    sanity: ‘questionable’
    });


    Until next bug, guys, may your el() be swift, your applyFormat steadfast, and your console logs ever revealing . . .

    let PEACE be with you

  • what is that IIBI thing we're talking about?

    what is that IIBI thing we’re talking about?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    IIBI means Insert Image by ID, it is a wp custom block element with the purpose of making things easier, specially for bloggers and who often creates posts for his site, here is how it works:

    select an image in Commander, hit Copy Img ID, automatically opens the new post page, hit the + and select IIBI, paste the image ID and confirm . . .

    1,2,3 and there it is, with the pre-formatted options you configured in IIBI Setup: Alt Text, which image size to use, its alignment and image width on the page

    select any image by clicking or tapping the little select box in the lower left corner, then the Copy Img ID button is being enabled and you hit it

    a confirming message appears sying the image ID was copied, then Calling New Post and it opens

    write the title or hit the + to add something directly, then select IIPI from the appearing element list, the control box comes up and you just paste the copied image ID and confirm

    an instant after, the selected image appears on the page with the basic settings you configured in IIBI settings, you still can change them as you wish, then finish your post with more text

    bottom line is that you can paste a lot more in less time, this thing is fully mobile compatible, means you can add posts from wherever you are, even in the bus, in the car or on a mountain . . . IIBI makes you stay on top of it

    no hassle anymore with selecting images from the creepy wp media library, we completely eliminated this horrendous work overhead, this new post flow with wpHakka Commander and IIBI is stressless work, so now you keep posting and smiling . . .