nginx – php-fpm “Cannot modify header information” error

I have two docker containers linked by a docker network. One is running nginxinc/nginx-unprivileged and the other is running php:fpm. I have linked them together so that the php:fpm container handles running the php, however when the php tried to update the page I get a header error (shown below).

I saw a suggestion to check the output_buffering parameter inside php.ini, however mine is already set to 4096.

Does anyone have any idea where I may be missing something here?

This is the error I receive in the web browser:

Array ( (fullname) => dsd (suggestion) => da )
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/action.php:17) in /usr/share/nginx/html/action.php on line 33

Here are my dockerfiles:

nginx:

# Rootless Webserver Dockerfile

FROM nginxinc/nginx-unprivileged:1.19-alpine

USER root

# Create a group and user
RUN addgroup -S apache && adduser -S apache -G apache

RUN addgroup nginx www-data

RUN apk add php7 
    php7-fpm 
    php7-mysqlnd 
    nano

USER nginx
COPY webfiles/ /usr/share/nginx/html

USER root
COPY configfiles/nginx.conf     /etc/nginx/nginx.conf
# COPY configfiles/nginx2.conf     /etc/nginx//nginx2.conf
COPY configfiles/php.ini        /etc/php7/php.ini
COPY configfiles/www.conf       /etc/php7/php-fpm.d/www.conf
COPY configfiles/php-fpm.conf   /etc/php7/php-fpm.conf
# COPY configfiles/supervisord.conf /etc/supervisord.conf

# RUN rm -f /usr/share/nginx/html/index.html && 
#   chmod +x /docker-entrypoint.sh

RUN mkdir -p /usr/sbin/php-fpm

EXPOSE 8080

USER nginx

php:

FROM php:fpm

RUN mkdir -p /usr/share/nginx/html
RUN docker-php-ext-install mysqli

COPY index.php /usr/share/nginx/html/index.php
COPY action.php /usr/share/nginx/html/action.php

EXPOSE 9000

And here is my nginx.conf:

server {
        listen       8080 default_server;
        listen       (::):8080 default_server;
        index        index.php;
        server_name  web.cyber.test;
        root         /usr/share/nginx/html;

    error_log /var/log/nginx/error.log;

        # Load configuration files for the default server block.
        # include /etc/nginx/default.d/*.conf;

        location / {
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
        
    location ~ .php$ {
        try_files $uri =404;
        fastcgi_pass 203.0.113.100:9000;
        fastcgi_index index.php;
        # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$fastcgi_script_name;
        include fastcgi_params;
        }

javascript – Attempted import error: ‘getItems’ is not exported from ‘../actions/itemActions’

I am receiving the following error when trying to run my React app:

./src/components/ShoppingList.js
Attempted import error: ‘getItems’ is not exported from ‘../actions/itemActions’.

Here’s itemActions.js

import {GET_ITEMS, ADD_ITEM, DELETE_ITEM} from './types';

export const getIems = () => {
    return{
        type: GET_ITEMS
    };
}

and this is ShoppingList.js

import React, {Component} from 'react';
import {Container, ListGroup, ListGroupItem, Button } from 'reactstrap';
import {CSSTransition, TransitionGroup} from 'react-transition-group';

import {connect} from 'react-redux';
import {getItems} from '../actions/itemActions';
import PropTypes from 'prop-types';

class ShoppingList extends Component{

    componentDidMount(){
        this.props.getItems();
    }

    render(){
        const {items} = this.props.item;
        return(
            <Container>
                <Button color="dark" style={{marginBottom:'2rem'}}
                        onClick={ () => {
                            const name = prompt('Enter Item');
                            if(name){
                                this.setState(state => ({
                                    items: ( ...state.items, {id: 5, name})
                                })
                                );
                            }
                        } 
                        }>
                    Add Item
                </Button>
                <ListGroup>
                    <TransitionGroup className="shopping-list">
                        {items.map( ({id, name}) => (
                            <CSSTransition key={id} timeout={500} classNames="fade">
                                <ListGroupItem>
                                    <Button className="remove-btn" color="danger"
                                        onClick={ () => {
                                            this.setState(state => ({
                                                items : this.state.items.filter(item => item.id !=id)
                                            }));
                                        }}>
                                    &times;
                                    </Button>
                                    {name}
                                </ListGroupItem>
                            </CSSTransition>
                        )
                        )}
                    </TransitionGroup>
                </ListGroup>
            </Container>
        );
    }
}
ShoppingList.PropTypes = {
    getItems: PropTypes.func.isRequired,
    item:PropTypes.object.isRequired
}
const mapStateToProps = (state) => ({
    item: state.item
});

export default connect(mapStateToProps, {getItems}) (ShoppingList);

and this is types.js

export const GET_ITEMS = 'GET_ITEMS';
export const ADD_ITEM = 'ADD_ITEM';
export const DELETE_ITEM = 'DELETE_ITEM';

I want to know what’s wrong with my code!!

Please help me if you can!!

google – type ‘Color’ is not a subtype of type ‘MaterialColor’ error in Flutter?

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building Builder:
type ‘Color’ is not a subtype of type ‘MaterialColor’

The relevant error-causing widget was:
MaterialApp file:///D:/FlutterExercise/FlutterExercise/07/spanishaudioplayer/lib/main.dart:9:12

When the exception was thrown, this was the stack:
#0 new _HomePageState (package:spanishaudioplayer/HomePage.dart:22:35)
#1 HomePage.createState (package:spanishaudioplayer/HomePage.dart:7:35)
#2 new StatefulElement (package:flutter/src/widgets/framework.dart:4584:24)
#3 StatefulWidget.createElement (package:flutter/src/widgets/framework.dart:916:38)
… Normal element mounting (166 frames)
#169 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3541:14)
#170 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6094:32)
… Normal element mounting (300 frames)
#470 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3541:14)
#471 Element.updateChild (package:flutter/src/widgets/framework.dart:3306:18)
#472 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1182:16)
#473 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1153:5)
#474 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1095:18)
#475 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2647:19)
#476 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1094:13)
#477 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:934:7)
#478 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:915:7)
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

════════════════════════════════════════════════════════════════════════════════════════════════════
W/InputMethodManager(14486): startInputReason = 8
W/IInputConnectionWrapper(14486): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper(14486): getTextBeforeCursor on inactive InputConnection
V/ActivityThread(14486): Finishing stop of ActivityRecord{801579c token=android.os.BinderProxy@63e470c {com.example.spanishaudioplayer/com.example.spanishaudioplayer.MainActivity}}
W/libEGL (14486): EGLNativeWindowType 0x76efee7010 disconnect failed
W/libEGL (14486): EGLNativeWindowType 0x7713667010 disconnect failed
V/ActivityThread(14486): Handle window ActivityRecord{801579c token=android.os.BinderProxy@63e470c {com.example.spanishaudioplayer/com.example.spanishaudioplayer.MainActivity}} visibility: false

/////////////////////////////////////////////////////////////////////////////////////////////////////
//main.dart

import 'package:flutter/material.dart';
import 'HomePage.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Spanish Audio Numbers',
      theme: ThemeData(
        primarySwatch: Colors.teal,
      ),
      home: HomePage(),
    );
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//HomePage.dart

import 'package:flutter/material.dart';
import 'package:audioplayers/audio_cache.dart';
import 'NumberAudio.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  AudioCache audioPlayer = AudioCache();
  List<NumberAudio> audioList = (
    NumberAudio("one.wav", Colors.red, "one"),
    NumberAudio("two.wav", Colors.blue, "two"),
    NumberAudio("three.wav", Colors.pink, "three"),
    NumberAudio("four.wav", Colors.orange, "four"),
    NumberAudio("five.wav", Colors.purple, "five"),
    NumberAudio("six.wav", Colors.cyan, "six"),
    NumberAudio("seven.wav", Colors.green, "seven"),
    NumberAudio("eight.wav", Colors.grey, "eight"),
    NumberAudio("nine.wav", Colors.yellow, "nine"),
    NumberAudio("ten.wav", Colors.black, "ten"),
  );
  play(String audioFile) async {
    audioPlayer.play(audioFile);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          'Spanish Numbers',
          style: TextStyle(
            color: Colors.white,
            fontSize: 24.0,
            fontWeight: FontWeight.bold,
          ),
        ),
        //backgroundColor: Colors.teal,
      ),
      body: Center(
        child: Column(
          children: (
            Image(
              image: AssetImage("images/logo.png"),
            ),
            Expanded(
              child: GridView.builder(
                padding: EdgeInsets.all(10.0),
                gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                  childAspectRatio: 1.0,
                  crossAxisCount: 2,
                  crossAxisSpacing: 5.0,
                  mainAxisSpacing: 5.0,
                ),
                itemCount: audioList.length,
                itemBuilder: (context, index) => SizedBox(
                  height: 50.0,
                  width: 100.0,
                  child: RaisedButton(
                    child: Text(
                      audioList(index).buttonTitle,
                      style: TextStyle(
                        color: Colors.white,
                        fontSize: 24.0,
                        fontWeight: FontWeight.bold,
                      ),
                    ),
                    color: audioList(index).buttonColor,
                    onPressed: () {
                      play(audioList(index).audioFile);
                    },
                  ),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//NumberAudio.dart

import 'package:flutter/material.dart';

class NumberAudio {
  String audioFile;
  MaterialColor buttonColor;
  String buttonTitle;
  NumberAudio(String audioFile, MaterialColor buttonColor, String buttonTitle) {
    this.audioFile = audioFile;
    this.buttonColor = buttonColor;
    this.buttonTitle = buttonTitle;
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////

audio files are in the assets folder and the logo is in images folder.

magento2.3 – Sorry, something went wrong. You can find out more in the error log

magento2.3 – Sorry, something went wrong. You can find out more in the error log – Magento Stack Exchange

azure ad – Access Denied error After migrate on-prem Local AD SP Database to Sharepoint Farm joined to AzureAD DS

I have migrated Sharepoint 2013 Farm which is joined to Local AD DS to Sharepoint 2016 Farm joined to AzureAD DS.

Client wants to take full use of AzureAD DS and want to migrate sharepoint farm to Azure VMs connected to AzureAD DS.

I created a Sharepoint 2016 farm. created normal webapp/Site collection and is able to access as expected.

When I attach sharepoint 2013 DB after upgrade it gives access denied to those upgrade web app.
Do I need to do any changes to existing usernames as they has been now talking to AzureAD DS instead of Local AD.

ESXi esxcli Error: Unknown command or namespace vm process kill –t=soft –w=67909

I’m running ESXi 6.5 embedded host client. When i ssh into the system I can run esxcli vm process list and get the expected output:

testserver1
   World ID: 67909
   Process ID: 0
   VMX Cartel ID: 67908
   UUID: someuuid
   Display Name: testserver1
   Config File: /vmfs/volumes/somelocation/testserver1/testserver1.vmx

But if i run esxcli vm process kill –t=soft –w=67909 I get the error Error: Unknown command or namespace vm process kill –t=soft –w=67909

To confirm i’m running the correct command, i ran esxcli vm process kill -help and get

Error: Invalid option -h

Usage: esxcli vm process kill (cmd options)

Description: 
  kill                  Used to forcibly kill Virtual Machines that are stuck and not responding to normal stop operations.

Cmd options:
  -t|--type=<str>       The type of kill operation to attempt. There are three types of VM kills that can be attempted:   (soft, hard, force). Users should always
                        attempt 'soft' kills first, which will give the VMX process a chance to shutdown cleanly (like kill or kill -SIGTERM). If that does not work
                        move to 'hard' kills which will shutdown the process immediately (like kill -9 or kill -SIGKILL). 'force' should be used as a last resort
                        attempt to kill the VM. If all three fail then a reboot is required. (required)
  -w|--world-id=<long>  The World ID of the Virtual Machine to kill. This can be obtained from the 'vm process list' command (required)

Can you see anything i’m doing wrong that might be preventing this command from working?
I realize there’s vim-cmd alternative in docs but i’m trying to figure out why the first option from the docs is responding like it’s not even a valid command.

sharepoint on prem – Error when opening Office documents from library through native client

We have a strange error on a Sharepoint 2013 farm since a few days. Opening documents using any native Office 2016 client (e.g. Word) does not work anymore. It shows the error below and they do not open at all. The documents can be opened in Web App mode however.

“There are network issues stopping us from opening your document. Please try again later.”

enter image description here

Any idea ?

applescript – My Apple Script Editor code doesn’t work gives “Syntax Error Expected end of line but found identifier.”

The problem is the version of Evernote I tried is not AppleScript scriptable.

When trying to add Evernote to the Library in Script Editor, in order to review its AppleScript dictionary, it errs with: Add Item Unable to add the item because it is not scriptable.

Additionally, when running the following command in Script Editor:

tell application "System Events" to ¬
    get has scripting terminology of application process "Evernote"

Its result is: false


Apparently at one time Evernote was AppleScript scriptable, however, in macOS Catalina, testing with Evernote from https://evernote.com/download/ and checking Evernote > About Evernote it shows:

10.11.5-mac-ddl-public (2530)
Editor: v121.2.15734
Service: v1.32.4
© 2019 – 2021 Evernote Corporation. All rights reserved

Looking for the typical AppleScript dictionary in /Applications/Evernote.app/Contents/Resources/ there is no Evernote.sdef files as would be expected if it was fully AppleScript scriptable.


If you do have a version of Evernote that is AppleScript scriptable then try the following, which I cannot test under the circumstances:

Change note1 to note in:

set myNote to create note1 with text myTitle title myTitle notebook "Imported Notes" tags ("imported_from_notes")

You might also want to put in some parentheses. e.g.

set myNote to (create note with text myTitle title myTitle notebook "Imported Notes" tags ("imported_from_notes"))

Unfortunately without a version of Evernote that is AppleScript scriptable, I cannot offer more.

rom flashing – Heimdall Error (PIT file)

I a have a PC running Lubuntu 16.04.06. I installed heimdall 1.4.1 in order to flash a custom recovery. It always fails to download the PIT file, part #16 to be specific. I tried multiple devices and it just gives the same error. I also tried JOdin3 before but it wouldn’t run when I execute the binary. Is it possible to fix this error I keep getting in heimdall? or does anyone have a heimdall build that’s working?

algorithms – How could a bank software intend to transfer $82.56 but result in a error transfer of $1,205,619.56

algorithms – How could a bank software intend to transfer $82.56 but result in a error transfer of $1,205,619.56 – Software Engineering Stack Exchange

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123