Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]

The semi-colons need to go inside the curly braces, to mark the ends of the array_push() statements: if(empty($username)) { array_push($errors, “Username is required”); } if(empty($email)) { array_push($errors, “Email is required”); } if(empty($password)) { array_push($errors, “Password is required”); } You don’t need semi-colons after the close braces.

Add clickable function in functions.php – parse error [closed]

For clarity’s sake regarding my comments, this is something more akin to what I’m talking about… // plugins/wpse392844/wpse392844.php function wpse392844_enqueue_assets() { wp_enqueue_script( ‘wpse392844-frontend’, plugins_url( ‘assets/js/frontend.js’, __FILE__ ) ); } add_action( ‘wp_enqueue_scripts’, ‘wpse392844_enqueue_assets’ ); // plugins/wpse392844/assets/js/frontend.js function thfull() { document.getElementById(‘thf’).style.maxHeight=”1000px”; } (we’re defining the thfull() function in JavaScript rather than PHP such that the browser will … Read more

Fatal error with Ultimate Coupon plugin

Both plugins – Premium Coupon Plugin and Ultimate Coupon – declare the poorly named function like_content(). Disable the other plugin before you activate this one. And tell the developer they should prefix their functions.

Parse error: syntax error, unexpected T_FUNCTION

That is called an Anonymous Function and is only supported in later versions of PHP, specifically 5.3.0 and later. If I were a betting man I would say your server has an earlier version of PHP. Try this instead: /*Add meta boxes to contact page*/ function contact_metaboxes( \WP_Post $post ) { global $post; if( ! … Read more

problem ajaxurl – designthemes-core-features

is the “designthemes-core-features” plugin of a theme, this code can be found in the admin.js file inside the JS folder. The code “url: ajaxurl,” (says: “ajaxurl is not defined”) Would there be any idea? Would you like some more information? Thank you

Error establishing a database connection in godaddy.com

Did you change http://localhost to http://yoursite.com in your .sql file Also ,check your client website database in phpmyadmin ,upload .sql file to it and also make sure your localhost databse have same prefix as your client ,generally it is wp_ but if different change it . connect to your client website through FTP and upload … Read more