javascript,jquery,includeRelated issues-Collection of common programming errors
Amit Kumar
javascript android phonegap xml-parsing
Hello i am developing an app in which i am fetching png images encoded using base64 in XML form. In android 2.2 emulator and device images are displaying , but when i try it on android 4.1 emulator app crash and showing these log in locat01-22 11:05:03.104: W/dalvikvm(723): JNI WARNING: JNI method called with exception pending 01-22 11:05:03.114: W/dalvikvm(723): in Landroid/webkit/JWebCoreJavaBridge;.nativeServiceFuncPtrQueue:()V (FindClass) 01-22 11:05:03.114: W/dalvik
Baconbeastnz
javascript jquery
I’m using window.onerror, and window.onbeforeunload to pass all the errors encountered in the users session with AJAX, I’m trying to test it, and I need to create some javascript errors to test if it is catching it I’ve tried things like var a = b; (where b doesn’t exist) problem is these errors seems to be fatal and stop any further processing…Can anyone think of a decent way to cause some errors without stopping the processing of the script?ErrorManager: (function () {function Init(message)
fletch
php javascript mysql
I have been utilising the same script in several pages and now am facing this issue.here is the first part of the code.<?php require_once(‘REDACTED.php’);$query = “SELECT * FROM tracking WHERE server=’Phoenix’ AND joindate >= DATE_SUB(CURDATE(), INTERVAL 7 DAY)”;$result = $mysqli->query($query);$phoenixShare = $result->num_rows;$query = “SELECT * FROM tracking WHERE server=’Xtreme’ AND joindate >= DATE_SUB(CURDATE(), INTERVAL 7 DAY)”;$result = $mysqli->query($query);$xtremeShar
Zachary Burt
javascript node.js socket.io v8 npm
When I run my node app, I get this error message before it quits:FATAL ERROR: v8::HandleScope::Close() Local scope has already been closedBy hunting around on the google groups, one theory I have is that I have a node module version conflict. But I’m not sure how to resolve it.Note: I have another socket.IO server running on this machine. Could that be the culprit?(function () {“use strict”;var express = require(“express”);var app = module.exports = express.createServer(),util = require(“util”
Chinchila
javascript php jquery load
I have that code:$(function(){$(“#dirr”).click(function(){$(“section[name=files]”).load(‘pages/files.php?’ + $.param({dir: 2}););}); });and that error on page:Fatal error: Call to a member function prepare() on a non-object in \pages\files.php on line 51UPDATE:<? if($_GET[‘dir’] == “”){echo ‘<form id=”dirform” method=”POST” action=”?f=createdir”><label>Create directory:<input type=”text” id=”cdir” name=”cdir” required><input type=”radio” name=”dirpub” id=”dirpub” value=”1
TKVideoChat
javascript mysql phpmyadmin monitor
When I open phpMyAdmin – Status – Monitor I get an error: A fatal JavaScript error has occurred. Would you like to send an error report?Report message is:{ “exception”: {“mode”: “stack”,”name”: “TypeError”,”message”: “chartObj is undefined”,”stack”: [{“func”: “addChart”,”args”: “”,”line”: 1042,”column”: “30”,”context”: [” /* Adds a chart to the chart grid */”,” function addChart(chartObj, initialize) {“,””,” var i;”,” var settings = {“,” title: escapeHtml(chartObj.
user2004018
javascript node.js websocket socket.io
I am trying to unpack a nodejs module socket.io. I was getting a build error to install Visual stdio 2005 and .net framework2 sdk, so I did. now I am getting the following error with no advice on how to fix it. please help me.I am using vista, 32 bit.Your environment has been set up for using Node.js 0.8.18 (ia32) and NPMC:\Users\shane>CD C:\nodefilesC:\NodeFiles>npm install socket.io npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm ht
Lars Kerff
php javascript ajax wordpress
I’m working on a wordpress site and trying to make recieve data from a range slider with ajax. In my alert(data) I get the following error:Fatal error Class not found in /home/../…etc/..etc/test.php on line 3test.php:<?phpclass acf_field_number_range extends acf_field {(…)Javascript:<script type=”text/javascript”>$(“#slider”).bind(“valuesChanged”, function (e, data) {$.ajax({type: “POST”,dataType: “text”,url: “../wp-content/themes/twentytwelve/fields/number_range-v4.php”,data: { mi
duellsy
javascript php joomla
Please anyone help me on this.I’m just a beginner with Joomla. Just started to create a category blog when I click on the blog page an error is occuring. Below is the error I’m getting:Fatal error: Class ‘JLayoutHelper’ not found in E:\Joomla_3.0.3-Stable-Full_Package\templates\jsn_epic_free\html\com_content\category\blog_item.php on line 29Can anybody provide some help with this?
Jamal
javascript jquery datetime plugin twitter
I’ve built a Twitter plugin recently and was wondering if I could get some feedback on it. There is also a PHP side that grabs the actual tweets and I can post that code if it’s needed.http://jsfiddle.net/cKfDd/;(function ( $, window, document, undefined ) { /************************************* Plugin Functions *************************************/ /*************************************/ Plugin.prototype.init = function () {var params = [ ‘?user=’ + this.options.user,’&limit=’
Ash
php jquery ajax wpdb
I’m using a jquery ajax call to get certain data from wpdb and I’m getting the following message: <b>Fatal error</b>: Call to a member function get_results() on a non-object in <b>C:\wamp\www\maps_en2\markers.php</b> on line <b>15</b><br />This is the call:$.ajax({type: “POST”,url: “markers.php”,data: ({‘southWestLat’ : southWestLat , ‘southWestLng’ : southWestLng , ‘northEastLat’ : northEastLat , ‘northEastLng’ : northEastLng}),success: function(msg){
user2772219
php posts jquery database ajax
I have a popup which gets the users input (name and email) and sends it to a process.php so I can send an email.I pretty much have that done. But I need to add a functionality wherein it will also the users input to the database (I already have the table for this).My process.php is this:<?php$to = ‘[email protected]’;$subject = ‘Join ‘.$_POST[‘title’].’ Event’;$message = ‘<html><head></head><body>Name: ‘.$_POST[‘participant’].'<br/>Email Address: ‘.$_POST[‘e
toscho
plugin-development jquery ajax query
I’ve read tons of post already but found no solution…I’m tryin to implement Jeditable functionality in a plugin with this code:jQuery(document).ready(function() {jQuery(‘.edit’).editable(‘http://localhost/www/wp-content/plugins/my_plugin/save.php’ });If in save.php I simply echo something, it will be returned to the textfield I was updating without problem. Problem is on how to insert it into the db… If I use this:if (isset($_POST[‘id’])) {global $wpdb;$query = “INSERT INTO table (col1, col2
SLoret
jquery galleria
If I have the line <style type=”text/css”></style> , even though it is blank, Galleria throws the error message “Fatal error: Could not extract a stage height from the CSS. Traced height: 0px.” It would appear that even though I’m telling galleria to use a height of 300 via: $(‘#galleria’).galleria({ width: 300, height: 300, transition: ‘fade’ }); it tries to first determine the height and the CSS line is confusing it, so it throws this error. If I remove that one line, no more e
mahish
jquery wp-admin hooks
This is the hook and script Im using, the jquery script itself is working as you can see in this fiddle:function my_custom_admin_footer(){echo ‘ <script type=”text/javascript”>jQuery(document).ready(function($) {$(“.checkIt”).change(function (e) {if ($(“input:checkbox:checked”).length > 1) {alert(“Only one attribute is allowed.”);$(e.target).prop(‘checked’, false);}});});</script>’; }add_action(‘admin_footer’, ‘my_custom_admin_footer’);in wp-admin, i get only blank page inst
Baconbeastnz
javascript jquery
I’m using window.onerror, and window.onbeforeunload to pass all the errors encountered in the users session with AJAX, I’m trying to test it, and I need to create some javascript errors to test if it is catching it I’ve tried things like var a = b; (where b doesn’t exist) problem is these errors seems to be fatal and stop any further processing…Can anyone think of a decent way to cause some errors without stopping the processing of the script?ErrorManager: (function () {function Init(message)
user2772219
php posts jquery database ajax
Why am I getting a Fatal error whenever I use wpdb in the target URL of my jQuery.post?Here is my code so far.My process.php is this:<?php$to = ‘[email protected]’;$subject = ‘Join ‘.$_POST[‘title’].’ Event’;$message = ‘<html><head></head><body>Name: ‘.$_POST[‘participant’].'<br/>Email Address: ‘.$_POST[’email’].'<br/>Message: ‘.$_POST[‘message’].'</body></html>’;$headers = ‘MIME-Version: 1.0’ . “\r\n”;$headers .= ‘Content-type: text/html;
Ohgodwhy
jquery ajax codeigniter smarty
So, im using Samrty with CodeIgniter as my template builder. On a given page, i do an ajax call to retrieve some data.I do de ajax call usign JQuery. The problem comes here: The call returns success but this is what I get:Fatal error: Uncaught exception ‘SmartyException’ with message ‘Unable to read template file ‘plantilla.tpl” in /export/home/htdocs/evaluacion/pruebas/admin10/application/libraries/Smarty/libs/sysplugins/smarty_internal_resource_file.php:70 Stack trace: #0 /export/home/htdocs
Chinchila
javascript php jquery load
I have that code:$(function(){$(“#dirr”).click(function(){$(“section[name=files]”).load(‘pages/files.php?’ + $.param({dir: 2}););}); });and that error on page:Fatal error: Call to a member function prepare() on a non-object in \pages\files.php on line 51UPDATE:<? if($_GET[‘dir’] == “”){echo ‘<form id=”dirform” method=”POST” action=”?f=createdir”><label>Create directory:<input type=”text” id=”cdir” name=”cdir” required><input type=”radio” name=”dirpub” id=”dirpub” value=”1
meagar
jquery internet-explorer galleria
Galleria v 1.2 works fine in FF, SF and Chrome, but it raises this message in all IEs “fatal error: no theme found.” Anybody seen it before?
Peter Mortensen
php include
When should I use require_once vs include?The code is in a custom WordPress theme, if that matters.
fischi
plugins multisite metabox include
I got a strange problem on a Multisite Install I run.Everything works perfectly fine (Domain Mapping, Caching, whatever functions and Plugins I use, both forced and chooseable).To enhance the experience for my customers, I installed a simple autoexpiry plugin that I wrote myself quite a while ago. It is not the best solution of entering a date, but apart from the UI it just works.In my plugin I include two files:cronjobs.php (containing the function for the one-off event to set the post to draft
Jeremi Liwanag
php theme-development customization include
Is this even possible? I mean, im trying to add a blog into my site.. I already have the header,footer and sidebar layout in my site. can i use those in my custom wordpress template? <?php /* Template Name: Blog */ ?> <?php include( PATH . ‘http://www.mysite.com/includes/header.php’ ); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?><div <?php post_class() ?> id=”post-<?php the_ID(); ?>”><h2><a href=”<?php the_permalink() ?>”&
Ahmed
c++ boost include
I think I did all the necessary configuration but I am still getting this:Error 1 fatal error C1083: Cannot open include file: ‘boost/config.hpp’: No such file or directory File:c:\documents and settings\administrator\my documents\visual studio 2008\libs\boost_1_43_0\boost\smart_ptr\shared_ptr.hpp Line:17Here are screenshots of setting I have done to add directories for include and lib files :Am I missing something ?
Joe_Schmoe
plugin-development ajax wpdb include wp-blog-header.php
To clarify my question… My plugin is/was using AJAX to call the file pluginname/submit/pick.php My pluginname/pluginname.php contains the usual plugin header and wordpress automatically finds it.Original Question… I’m trying to use the global $wpdb in a plugin to insert data into one of my tables. From the docs it sounds like I just need to include wp-blog-header.php However when I try to do so I’m getting an error.PHP Fatal error: [require()](function.require) : Failed opening required ‘ht
derekshirk
functions widgets include
I have seen WordPress developers use two different methods for loading custom widgets from the functions.php file. The first:include(“functions/my-custom-widget.php”);The second:require_once(dirname(__FILE__) . “/functions/my-custom-widget.php”);Which one of these methods is more efficient. I’m particularly interested in performance if there is a difference at all. Does the require_once follow better ‘best practices’ ?I’m sure there are plenty of other ways of doing this. If anyone has a better
user3390923
c++ compiler-errors include
I uses the win7 x64 OS and VS2010. I encountered an error that looks like something gone wrong with the compiler or setting environments or something like that. It happened during my programming suddenly. At first, my program can be compiled successfully. Then, without any reason(or some reason I didn’t realize) the program came out with a long list of errors mentioning “stdio.h”Then I built a new project for test which is a win32 console application, I followed the default “new->project” proced
??? Sufi
include paths
This is what in my wp-config.php :if ( !defined(‘ABSPATH’) )define(‘ABSPATH’, dirname(__FILE__) . ‘/’);I am calling from plugin/pluginName directory to :require_once( ABSPATH . ‘wp-includes/user.php’);But it is returning:Warning: require_once(ABSPATHwp-includes/user.php) [function.require-once]: failed to open stream: No such file or directory in /home/——/wp-content/plugins/—/—.php on line 43Fatal error: require_once() [function.require]: Failed opening required ‘ABSPATHwp-includes/user.
Nizam
c++ file include
I am using Visual Studio 2013 Professional and I have included all my files (tree.h, node.h). But the program gives me an error saying:1>c:\users\NAME\documents\visual studio 2013\projects\project name\project name\project name.cpp(6):fatal error C1083: Cannot open include file: ‘tree.h’: No such file or directory. Anyone have any clue?
Alexander Kachkaev
include auto-completion
I am a very lazy person, so sorry in advance if my question seems a bit odd.Working on a thesis, I am splitting the content of the whole document into multiple .tex files, one for each chapter section – that’s a pretty standard approach for such case. The master .tex file simply gathers everything together:… \chapter{Introduction} \label{chap:introduction} \include{ch01_01} \include{ch01_02} … \chapter{…} …Correspondingly, the folder contains all required files:ch01_01.tex ch01_02.tex .
Web site is in building