Questions tagged as 'syntax-error'

0
answers

Errors in Ruby appear because?

Goal Add (uri, url) with port. # Ajuda por carlos-romero # https://stackoverflow.com # Ajuda por mu-is-too-short # https://stackoverflow.com require 'uri' require 'socket' url = 'file://C://' class Class1 def fileProtocol( ur...
asked by 21.11.2018 / 21:43
0
answers

How to solve the error Uninitialized string offset: 0 in?

Using a wordpress plugin the yoast ends up giving this error in some posts, a post that is giving error is: link in it we can see the message:    "Notice: Uninitialized string offset: 0 in   /home/escolaedti/public_html/wp-content/plu...
asked by 24.05.2018 / 17:26
1
answer

Custom style for React

I'm trying to use a custom component, like the code below, but the same is giving error, can anyone give me a light of why the error is happening? import React from 'react'; import {withStyles, createStyleSheet} from 'material-ui/styles' impor...
asked by 28.02.2018 / 16:29
0
answers

Error returning JSON

I have a REST API that works correctly in my local environment but in production is cutting a part of the return. {"status":"sucesso","data":{"return":"Inser\u00e7\u00e3o de lead efetuada com sucesso. The correct one would be: {"status":"...
asked by 21.12.2017 / 14:50
1
answer

SQL syntax error SUM ()

I have the following scenario: A table of products ( tbl_prods ) that has, among other fields, the price of each product, the type of products and the date of the transaction (% with%). The types can be dt_trns , typ1 or...
asked by 06.10.2017 / 20:36
2
answers

mysql_num_rows () expects parameter 1 to be resource, object given in

I want to check if a user has already been registered in the database to not have duplicate users, but when I use mysqli_num_rows to know if there is any line with that user the error of the title. <?php include("setting.php"); $user = $...
asked by 16.08.2017 / 00:20
0
answers

Is giving error ImportError at / post / new / No module named 'blog.forms'

In this line: C: \ Users \ Fer Gomes \ djangogirls \ mysite \ blog \ views.py in, line 5 the code from django.shortcuts import render from django.utils import timezone from .models import Post from django.shortcuts import render, get_object_or...
asked by 22.06.2017 / 06:05
1
answer

Media Query syntax error when compressing the code

I'm trying to compress to the maximum the site where I work and for this I'm minimizing the javascripts and css, but this is giving error in the css minimizing well in the codes similar to what I will put here below. It does the syntax validatio...
asked by 09.09.2016 / 15:36
1
answer

"sh: 1: Syntax error: word unexpected (expecting") ")" when using dns function

#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <unistd.h> #include <string.h> void verbose() { printf("Ói eu aqui. \n"); exit(0); }//FECHA verbose void ajuda() { printf("Ajuda? Nem a...
asked by 11.08.2016 / 01:42
1
answer

Whenever I use directives of this error SyntaxError: Unexpected token

car-master.component.tsimport{Component}from'@angular/core';import{Car}from'./car';import{CarDetailComponent}from'./car-detail.Component';@Component({selector:'my-car',templateUrl:'app/view/car-master.html',directives:[CarDetailComponent]})expo...
asked by 02.07.2016 / 20:10