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!
<?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; }Blockquote
/*
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:
- Retrieving Local’s Log
There is no problem locally. Only when I transfer it to my production on flywheel
- Retrieving Local’s Log
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.