0
votes
2answers
116 views

wp_enqueue_script was called incorrectly

Hello I don't know how but now I am getting this error Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, ...
0
votes
1answer
21 views

Connecting to a 2nd DB gives me no results when querying

I'm trying to access a different DB on the same localhost as my wp db is and I did this like so: functions.php: add_action('init','my_new_db'); function my_new_db(){ $newdb = new wpdb( 'test', ...
0
votes
1answer
62 views

Strange error from functions.php files (wp_register_script)

I'm trying to migrate a wordpress site, and i'm receiving this error when debugging on the new server: Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered ...
0
votes
0answers
87 views

Warning: Cannot modify header information - headers already sent by (output started at ../wp-content/themes/shopifiq/functions.php:1)

I have just migrated my live site back to my local environment for further testing and development.I am running the site on OSX Mavericks with its stock Apache installation thus /Sites directory. As ...
0
votes
1answer
42 views

Get post title by Alphabet

I try to call this function to get a list of posts by alphabet. But for some reason i keep getting an error. Call to a member function get_col() on a non-object. What am i doing wrong? {function ...
0
votes
0answers
28 views

create submenu page - error function not found or invalid function name

I have created a plugin with a top level page. I created a sub menu underneath that. When I run the plugin on my site everything works. But when I test it on a separate site I get an error and I'm not ...
1
vote
0answers
39 views

Defined function gives undefined function error.. is a custom function [closed]

OK so I'm making a theme here at work and I'm sectioning off all functions that aren't add_action or the like. I'm using them through-out for different things. They are stored in a file called ...
0
votes
0answers
44 views

syntax error unexpected '}' at 364 line

I am getting this error on my website and am not able to access admin dashboard. The error occurs when I am a new theme on my website. Can you please help me to find this error. Parse error: ...
0
votes
0answers
49 views

Wordpress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache

I have been working on a theme for a few days and when I realized my JS file for my theme customizer wasn't updating I decided to clear the cookies and cache, and wow that was problematic. As soon as ...
0
votes
2answers
76 views

Why does modifying my functions.php file always result in a server error

Basically, every time I modify my functions.php file and reload it to the server my site "breaks" and nothing loads. As soon as I delete it, it starts working again. Now before anyone freaks out, I ...
0
votes
1answer
24 views

Functions Error: Impacting Galleries

The function below controls an option inside an options panel. What it does is choose the number of posts being displayed in a particular archive (to_count archives, to_count_home, to_count search ...
0
votes
2answers
205 views

Remove Menu Page Giving Error

I have a snippet of code I've written in the functions.php file which is simply to remove menu pages if the user cannot activate plugins. It works as intended; however it is showing a PHP error in ...
0
votes
1answer
2k views

How to display error messages using WP_Error class?

I have registration form code in my functions.php file like this if ('POST' == $_SERVER['REQUEST_METHOD'] && !empty($_POST['action']) && $_POST['action'] == 'registration') { ...
0
votes
1answer
356 views

Show errormessages on wrong username/password on custom loginform?

I use this simple HTML loginform in my sidebar. Does anyone have any clever way to make it show the errormessages when you type in wrong password or username? <form action="<?php echo ...
0
votes
2answers
327 views

debugging errors.. how to remedy?

I had trouble accessing wp-login.php, so I changed the name of the theme I'm developing to force WP to switch to default. I then turned on debugging and received the errors below. I'm a little puzzled ...
0
votes
1answer
286 views

Problems with functions.php! Error! [closed]

Suddenly I got the message: Parse error: syntax error, unexpected T_CLASS in /home/spandabe/public_html/wp-content/themes/modularity-lite/functions.php on line 72 when opening my site ...
0
votes
1answer
153 views

Looking for Functions File that doesn't Exist

My WordPress site seems to be running fine, except that trying to go to the plugins page gives the following error: Fatal error: Cannot redeclare _verifyactivate_widgets() (previously declared in ...
0
votes
1answer
198 views

Functions.php error - when trying to change the theme

After trying to replace the wordpress theme , it says that the functions.php file in the theme catalogue - the last line - is not ok Parse error: syntax error, unexpected $end in ... ...