Link to css file works in local, not on flywheel

Issue Summary

I built a very simple plugin to demonstrate the problem. It imports the link to a css file, uses the css file in a label statement (via the class parameter). Works a treat in local, not on flywheel.
It was extracted from a much larger bit of code which works beautifully, but because of the above problem, it is unusable.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular? I only have one site.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser? yes

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

Blockquote

<?php /* Function name: fj_test Description: Provide an opportunity to easily fill in wegottickets metadata on pending and current gigs Version: 1.0 Author: Dave Lyons Author URI: http://www.fleecejazz.org.uk */ function fj_tohtmlx($str, $head='h2'){ ?> <?php $html='<' . $head . '>'; $html.=$str; $html.='<' . $head . '/>'; echo $html; }

/*
Main function
Does all the work: find posts, shows form, updates fj-wegottickets
/
function fj_test(){
/

Loop through pending/event posts and display with checkbox
Standard wordpress loop
*/
fj_tohtmlx(“Testing css in local (works) production (doesn’t)”, “h2”);

?>
    <form method="POST" action ="<?php echo $_SERVER['REQUEST_URI']; ?>" >
    <div id='wgt_form' >
            <br>
            <label class="lbl"  for= "fred" > a label</label></br>
            <input type="url" size='60' name="fred" id="fred" value="http://www.fred.com" </input>

    <br/><input type="SUBMIT" value="submit" name ='submit'/><br/>
    </div>
    </form>
    <?php
    if (isset($_POST["fred"])) {
        fj_tohtmlx("done");
    }

}

System Details

  • Which version of Local is being used? 6.4.1+5978

  • What Operating System (OS) and OS version is being used?

    • _For example: macOS Catalina or Windows 10 Professional_macos Monterey
  • Attach the Local Log. See this Help Doc for instructions on how to do so:

Security Reminder

Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

@davidjazz hello! Have you tried reaching out to Flywheel support regarding this? You can create a ticket from your help center here: https://app.getflywheel.com/help

Since this is working on your Local App, that will probably be the best way to get you an answer.

Yes. They see no problem, but their remit does not include coding problems, so they were no help. That is not a complaint, I knew that policy, but tried anyway after Nick-B’s suggestion.

BTW, I looked in the error logs, nothing relevant.

I have simplified further, Still works on Local not ob Flyweel server. can’t get simpler

<?php /* Function name: fj_test Description: Provide an opportunity to easily fill in wegottickets metadata on pending and current gigs Version: 1.0 Author: Dave Lyons Author URI: http://www.fleecejazz.org.uk */ /* Main function */ function fj_test(){ ?>
<link type="text/css" href="<?php echo WP_PLUGIN_URL; ?>/fj-admin/fj_form.css" rel="stylesheet" />
<br/><h3>PleaSE SOMBODY , anybody help me</h3><br/>

<?php

}

Finally problem solved, somthing to do with JSON, fixed by the lovely chat person.
This topic can now close.

1 Like

Glad to hear it @davidjazz!