php – Fatal error: Error not detected: Function test call undefined ()

So I have a problem where I get an answer from & # 39; Indefinite function & # 39; and I can't seem to understand why and how to write it down.

Path relative to the shortcode file: htdocs / wp-content / mu-plugins / s / shortcodes / profile.php
enter the description of the image here

Path relative to the profile card: htdocs / wp-content / mu-plugins / s / templates / people-card.php
– (This is where I have some HTML)


What I would like to achieve:

  • Apply the shortcode to the page, then have the shortcode function call the profile-card.php page and take all the content inside and display it.

This is the end, the shortcode will display the page & # 39; profile-card.php & # 39 ;.

The code I have inside shortcodes / profile.php:

function clearline_func() {
    test();
}
add_shortcode('test', 'clearline_func');

I'm getting a Fatal error: Uncaught Error: Call to undefined function test() error.

perl: why is this error about strict subs only activated under autodie?

Given a code like this, I don't receive any warning.

use strict;
use warnings;
open STDERR, '>&', STDOUT;

Given this code, I get a fatal error.

use strict;
use warnings;
use autodie;
open STDERR, '>&', STDOUT;

The basic word "STDOUT" is not allowed while using "strict subs" in ./test.pl
line 6. Execution of ./test.pl aborted due to compilation errors.

Because it is autodie pointing to the strict subs as the source of this error, when I was clearly strict in the first example and received no error.

With diagnostics The error is explained like this …

The basic word "STDOUT" is not allowed while using "strict subs" in ./test.pl line 7.
Execution of ./test.pl aborted due to compilation errors (# 1) (F) With "strict subs" in use, only one basic word is allowed as a subroutine identifier, between braces or to the left of "=>" symbol . Perhaps you need to pre-declare a subroutine?

All this can be solved by doing

open STDERR, '>&', *STDOUT;

So it's not a WORD OF BAR, but why is the keyword special to open without autodie and not with autodie? Or I'm missing something

Why do my transactional emails fail? The error appears "550 messages must have one or no content type header, not 2."

I recently updated my open source store from version 2.2.2 to version 2.3.3. At that time, automatic email responses (order confirmation, newsletter subscription confirmation, etc.) began to fail. Emails are created, but do not reach the client, but fail with the following error:

host outbound.mailspamprotection.com (108.178.13.114)
SMTP error of the remote mail server after the end of the data:
Messages 550 must have one or no content type header, not 2.

For some reason, the Magento program is placing two headers in the Content-Type header. The email is returned to my inbox with the message:

This message was created automatically by the mail delivery software.

A message you sent could not be delivered to one or more of your recipients. > This is a permanent error. The following address (s) failed:

I have not been able to find any documentation or any other person with this problem. I have made my Magento developers (I am not one) see it, but so far they have not been able to find the problem. Hopefully someone here can solve this.

Thank you,

John

bitcoind: error synchronizing with blockchain

Then I already have the node configured in my raspberry pi. Tonight the blockchain transfer from my laptop to the hard drive of the raspi is over. Now I'm waiting for the blocks to match the headers

"blocks": 162064, "headers": 613982

The thing is that when I do bitcoin-cli getblockchaininfo To verify if it is already complete, this error appears:

error: Could not connect to the server 127.0.0.1:8332
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

I check if bitcoind is running with systemctl status bitcoind.service and this appears:

● bitcoind.service - Bitcoin daemon

Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)

Active: activating (auto-restart) (Result: exit-code) since Wed 2020-01-22 11:59:12 CET; 15s ago

Process: 811 ExecStartPre=/bin/sh -c sleep 30 (code=exited, status=0/SUCCESS)

Process: 814 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid (code=exited, status=0/SUCCESS)

Main PID: 815 (code=exited, status=1/FAILURE)

So I try to restart the bitcoin daemon with sudo systemctl stop bitcoind Y sudo systemctl start bitcoind. And when I check your status, it shows the following (which looks good):

bitcoind.service - Bitcoin daemon

Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)

Active: active (running) since Wed 2020-01-22 12:01:01 CET; 5s ago

Process: 862 ExecStartPre=/bin/sh -c sleep 30 (code=exited, status=0/SUCCESS)

Process: 864 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid (code=exited, status=0/SUCCESS)

Main PID: 865 (bitcoind)

Tasks: 12 (limit: 2200)

Memory: 111.0M

CGroup: /system.slice/bitcoind.service

└─865 /usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid

And when i do bitcoin-cli getblockchaininfo again, it doesn't show me an error, but the amount of synchronized blocks is lower than before. And a few minutes later, when I check again, everything repeats.

What am I supposed to do here?

Thank you

Error running import-spweb in SharePoint 2013

When we try to restore a site using the following, we receive an error. We have reduced the error to when a restoration of the list of promoted links (FILE) occurs. The content type of the list has been edited. We have successfully restored a list of default promoted links.

Exporting with
powershell export-spweb "site" -path "export.cmp" -IncludeUserSecurity -Force

Importing with –
powershell import-spweb -identity "site" -path "export.cmp"

Error message –
import-spweb: The element & # 39; WebPart & # 39; in the namespace & # 39; urn: deployment-manifest-scheme & # 39; has an invalid child element
& # 39; ParameterBinding & # 39; in the namespace & # 39; urn: deployment-manifest-scheme & # 39 ;. List of possible expected elements: & # 39; Script, PagedRowset,
PagedClientCallbackRowset, PagedRecurrenceRowset, ViewFields, ViewData, Query, RowLimit, RowLimitExceeded, Toolbar,

Manifest.xml –


        
            
                
            
        


virtualbox – Black screen error in Kali Linux in Ubuntu Virtual Box

I downloaded Virtual Box the latest edition, to run this virtual image of Kali Linux. I downloaded Kali Linux VirtualBox 64-Bit Of course.

after importing the OVA file to Virtual Box, some problems appear on the signing of virtual box modules, I solve it by disabling the secure start instead of signing it. I know this is wrong, but it's the useful way for now.

After that, the machine runs successfully. but after choosing the boot package I get a black screen. I try to solve it by increasing Video Memory in Dispaly settings But the problem is still there.

some help? i usually 18.04.1-Ubuntu.

thanks.

performance: timeout error for dynamic array problem (hacker range)

I am trying to solve dynamic matrix problems in hackerRank. (link https://www.hackerrank.com/challenges/dynamic-array/problem). However, get a timeout error for very large entries. PFB my code in swift:

func dynamicArray(n: Int, queries: ((Int))) -> (Int) {
    var sequences: (Int: (Int)) = (:)
    var lastAnswer = 0
    var answerlist = (Int)()
    for query in queries {
        let queryType = query(0)
        let x = query(1)
        let y = query(2)
        switch queryType {
        case 1:
            let seq = (x ^ lastAnswer) % n
            if var sequence = sequences(seq) {
                sequence.append(y)
                sequences(seq) = sequence
            } else {
                sequences(seq) = (y)
            }
        case 2:
            let seq = (x ^ lastAnswer) % n
            let index = y % (sequences(seq))!.count
            lastAnswer = sequences(seq)!(index)
            answerlist.append(lastAnswer)
        default: break
        }
    }
    return answerlist
}

Can you optimize it further?

Sony alpha a6000 camera error

My camera went down and I received the message after pressing the shutter "Camera error. Turn off and on." But that never helps! When you remove the battery, the message is deleted, but the problem persists. Is it because of the damaged shutter?

Matlab surface plot error for a specific function only

I have a small matlab script

rho=1;
phi=0.5;
a=pi/4;
(x,y)=meshgrid(-1:1:1);
syms u;
Ex=abs(int(sqrt(cos(u))*exp(1i*rho*(cos(u-x.^2))),-a,a));
surf(x,y,Ex);

This throws an error. But there shouldn't be so Former It is a 3×3 matrix, so is the grid. Surface tracing should proceed without problems.

But if I define a function that does not use In t () function, for example –

z=x.^2+y.^2;
surf(x,y,z);

Then there is no mistake.
Does it have something to do with syms variables?
Any help would be appreciated.

terminal – tmux.conf is giving syntax error

Me .tmux.conf it is

# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-style bg=colour235,fg=colour136,default # bg=base02, fg=yellow

# set window split
bind-key v split-window -h
bind-key b split-window

# default window title colors
set-window-option -g window-status-style fg=colour244,bg=default,dim # fg=base0

# active window title colors
set-window-option -g window-status-current-style fg=colour166,bg=default,bright # fg=orange

# pane border
set-option -g pane-border-style fg=colour235 #fg=base02
set-option -g pane-active-border-style fg=colour240 #fg=base01

# message text
set-option -g message-style bg=colour235,fg=colour166 # bg=base02, fg=orange

# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour green #green


set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#(fg=green)#H #(fg=black)• #(fg=green,bright)#(uname -r | cut -c 1-6)#(default)'
set -g status-right '#(fg=green,bg=default,bright)#(tmux-mem-cpu-load) #(fg=red,dim,bg=default)#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #(fg=white,bg=default)%a%l:%M:%S %p#(default) #(fg=blue)%Y-%m-%d'

# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window

# Start numbering at 1
set -g base-index 1

# Allows for faster key repetition
set -s escape-time 0

# Rather than constraining window size to the maximum size of any client 
# connected to the *session*, constrain window size to the maximum size of any 
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on

# Allows us to use C-a a  to send commands to a TMUX session inside 
# another TMUX session
bind-key a send-prefix

# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on

# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# set to main-horizontal, 66% height for main pane
bind m run-shell "~/.tmux/scripts/resize-adaptable.sh -l main-horizontal -p 66"
# Same thing for verical layouts
bind M run-shell "~/.tmux/scripts/resize-adaptable.sh -l main-vertical -p 50"

bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"

# reload config
bind r source-file ~/.tmux.conf ; display-message "Config reloaded..."

# auto window rename
set-window-option -g automatic-rename
set-option -g allow-rename

# https://github.com/edkolev/dots/blob/master/tmux.conf
# Updates for tmux 1.9's current pane splitting paths.

# from powerline
run-shell "tmux set-environment -g TMUX_VERSION_MAJOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f1 | sed 's/(^0-9)*//g')"
run-shell "tmux set-environment -g TMUX_VERSION_MINOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f2 | sed 's/(^0-9)*//g')"

# Vi copypaste mode
set-window-option -g mode-keys vi
if-shell "test '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 )'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel'
if-shell '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'

# status bar
if-shell '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'

# rm mouse mode fail
if-shell '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 1)' 'set -g mouse off'
if-shell '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 1) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set -g mode-mouse off'

# fix pane_current_path on new window and splits
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o ( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 )'" 'unbind c; bind c new-window -c "#{pane_current_path}"'
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o ( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 )'" "unbind '"'; bind '"' split-window -v -c '#{pane_current_path}'"
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o ( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 )'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o ( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 )'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"'


# Colors
# How to use true colors in vim under tmux? #1246 for 2.6 and higher
# https://github.com/tmux/tmux/issues/1246:
# set -g default-terminal "tmux-256color"
# set -ga terminal-overrides ",*256col*:Tc"
# 2.5 and lower:
# set -g default-terminal "screen-256color"

# Doesn't work on iterm2 / mac
# if-shell "test '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 )'" 'set -g default-terminal "tmux-256color"'
# if-shell "test '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 )'" 'set -ga terminal-overrides ",*256col*:Tc"'

# Try screen256-color (https://github.com/tmux/tmux/issues/622):
if-shell "test '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 )'" 'set -g default-terminal "screen-256color"'
if-shell "test '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 )'" 'set -ga terminal-overrides ",screen-256color:Tc"'

if-shell '( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 6) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set -g default-terminal "screen-256color"'

set-option -g default-command fish
set -g mouse
set -g set-clipboard external
bind -T root MouseUp2Pane paste

When I do it source ~/.tmux.conf, I get:

bash: set-option: command not found
bash: bind-key: command not found
bash: bind-key: command not found
bash: set-window-option: command not found
bash: set-window-option: command not found
bash: set-option: command not found
bash: set-option: command not found
bash: set-option: command not found
bash: set-option: command not found
bash: set-option: command not found
bash: set-window-option: command not found
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set-option: command not found
bash: bind-key: command not found
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -s: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: setw: command not found
bash: bind-key: command not found
bash: setw: command not found
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
readline: h: no key sequence terminator
readline: select-pane: no key sequence terminator
readline: -L: no key sequence terminator
readline: j: no key sequence terminator
readline: select-pane: no key sequence terminator
readline: -D: no key sequence terminator
readline: k: no key sequence terminator
readline: select-pane: no key sequence terminator
readline: -U: no key sequence terminator
readline: l: no key sequence terminator
readline: select-pane: no key sequence terminator
readline: -R: no key sequence terminator
readline: m: no key sequence terminator
readline: run-shell: no key sequence terminator
readline: ~/.tmux/scripts/resize-adaptable.sh: unknown key modifier
readline: M: no key sequence terminator
readline: run-shell: no key sequence terminator
readline: ~/.tmux/scripts/resize-adaptable.sh: unknown key modifier
bash: bind-key: command not found
readline: r: no key sequence terminator
readline: source-file: no key sequence terminator
readline: /home/sintan/.tmux.conf: no key sequence terminator
readline: ;: no key sequence terminator
readline: display-message: no key sequence terminator
bash: set-window-option: command not found
bash: set-option: command not found
bash: run-shell: command not found
bash: run-shell: command not found
bash: set-window-option: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: if-shell: command not found
bash: set-option: command not found
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: set: -g: invalid option
set: usage: set (-abefhkmnptuvxBCHP) (-o option-name) (--) (arg ...)
bash: bind: -T: invalid option
bind: usage: bind (-lpsvPSVX) (-m keymap) (-f filename) (-q name) (-u name) (-r keyseq) (-x keyseq:shell-command) (keyseq:readline-function or readline-command)

That I have to do?