Trying to use Preview on an entry in the CP and get the following errors:
Notice Undefined variable: uri ee/ExpressionEngine/Service/LivePreview/LivePreview.php, line 185
Severity: E_NOTICE Warning Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120) ee/ExpressionEngine/Boot/boot.common.php, line 475
Any idea what causes these or a possible fix?
Can you post what version of EE you are on, and the template code for your live Preview template?
Upcoming EEConf Events:
Find out more about EEConf and our events throughout the year at www.eeconf.com
Usually, this error occurs when the variable $uri is referenced but either not initialized or not properly supplied to the function/class method.
Examine the code in LivePreview.php around line 185. Make sure that $uri is set appropriately if it is supposed to be provided into a function or method. Make sure you’re extracting or changing the value appropriately before attempting to use $uri if it’s coming from a request or URL. Make sure the necessary configuration or variables are set before the preview function is called, as it’s also conceivable that the live preview capability isn’t being initialized correctly.
Since this problem might not show up in a new, unmodified setup, you could wish to check for any custom customizations or plugins that are interfering with the live preview process. Check out our site for more information. geometry dash lite is a free version of the popular rhythm-based platformer Geometry Dash, created by Robert Topala and published by RobTop Games.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.