Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notices wp_enqueue_scrip and Gantry Framework #72

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

mimomedia
Copy link

Hi, i have tried to implement the Flabadab modification to use new media manager of Wp to my WpAlchemy, but get this notices and also a Warning from gantry Framework Plugin.

Anyone can point me in the right direction to get this working with no notices or warning?

Thank you very much.

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home1/mimo/public_html/demos/solotheme/wp-includes/functions.php on line 3012

Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home1/mimo/public_html/demos/solotheme/wp-includes/functions.php on line 3012

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home1/mimo/public_html/demos/solotheme/wp-includes/functions.php:3012) in /home1/mimo/public_html/demos/solotheme/wp-content/plugins/gantry/functions.php on line 182

Updated MediaAccess.php to use the Wordpress 3.5 Media Manager to upload.
Line 222: Removed "thickbox" class from function getButtonLink()
Line 318: Changed button link <input> to <a>
@mimomedia
Copy link
Author

Hi, sorry Flabadab, i am new user here and i think i am missing some points in understanding how github works, sorry again.

Adding those commits mean i need to make each of those modifications to my files? I need to use the last one?

Other thing is, i need also to change my -spec and -meta files with the structure of this new ones?

Thank you

Fixed issue with posts with thumbnail support not setting featured image.
Applied MetaBox Strict Standards fix
(https://gist.github.com/Pirenko/7022890/)
Changed when jQuery enqueue check is made.
Moved media scripts from __construct() to init() to avoid Strict Standard errors and changed wp_enqueue_script('jquery') to wp_enqueue_script('custom-header').
Fixed link in getButton()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants