Welcome Guest, Not a member yet? Register   Sign In
"message": "Uninitialized string offset: 0"
#1

(This post was last modified: 08-21-2020, 11:03 PM by jreklund.)

Code:
{
    "title": "ErrorException",
    "type": "ErrorException",
    "code": 500,
    "message": "Uninitialized string offset: 0",
    "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Database\\Query.php",
    "line": 479,
    "trace": [
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Database\\Query.php",
            "line": 479,
            "function": "errorHandler",
            "class": "CodeIgniter\\Debug\\Exceptions",
            "type": "->",
            "args": [
                8,
                "Uninitialized string offset: 0",
                "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Database\\Query.php",
                479,
                {
                    "sql": "INSERT INTO articles (article_url,article_title,article_slug,\r\n                        article_abstract,article_authors,article_area,article_keywords,article_journal,\r\n                        article_volume,article_issue,article_page_no,article_indexing,\r\n                        article_published_date,article_created_by,\r\n                        article_created_ip,pdf_name,pdf_file,image_file,image_file_name) \r\n                        VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
                    "binds": [
                        "https://forum.codeigniter.com/thread-73765.html",
                        "Services in CodeIgniter 4",
                        "services-in-codeigniter-4",
                        "I am not sure if these will work in a filter or not.",
                        "Regimon",
                        "Bio, Html 5, AI, PYTHON",
                        "csadsafdf",
                        "wdsdsafdfdf",
                        "23",
                        "32",
                        "34",
                        "[\"2\"]",
                        "2020-08-22",
                        "1",
                        "::1",
                        "Emergency Permit (1).pdf",
                        "1598072890_18f71a2efad774d07bd8.pdf",
                        "",
                        ""
                    ],
                    "bindCount": 19,
                    "ml": 1,
                    "c": 18,
                    "matches": [
                        [
                            [
                                "?",
                                447
                            ],
                            [
                                "?",
                                449
                            ],
                            [
                                "?",
                                451
                            ],
                            [
                                "?",
                                453
                            ],
                            [
                                "?",
                                455
                            ],
                            [
                                "?",
                                457
                            ],
                            [
                                "?",
                                459
                            ],
                            [
                                "?",
                                461
                            ],
                            [
                                "?",
                                463
                            ],
                            [
                                "?",
                                465
                            ],
                            [
                                "?",
                                467
                            ],
                            [
                                "?",
                                469
                            ],
                            [
                                "?",
                                471
                            ],
                            [
                                "?",
                                473
                            ],
                            [
                                "?",
                                475
                            ],
                            [
                                "?",
                                477
                            ],
                            [
                                "?",
                                479
                            ],
                            [
                                "?",
                                481
                            ],
                            [
                                "?",
                                483
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Database\\Query.php",
            "line": 408,
            "function": "matchSimpleBinds",
            "class": "CodeIgniter\\Database\\Query",
            "type": "->",
            "args": [
                "INSERT INTO articles (article_url,article_title,article_slug,\r\n                        article_abstract,article_authors,article_area,article_keywords,article_journal,\r\n                        article_volume,article_issue,article_page_no,article_indexing,\r\n                        article_published_date,article_created_by,\r\n                        article_created_ip,pdf_name,pdf_file,image_file,image_file_name) \r\n                        VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
                [
                    "https://forum.codeigniter.com/thread-73765.html",
                    "Services in CodeIgniter 4",
                    "services-in-codeigniter-4",
                    "I am not sure if these will work in a filter or not.",
                    "Regimon",
                    "Bio, Html 5, AI, PYTHON",
                    "csadsafdf",
                    "wdsdsafdfdf",
                    "23",
                    "32",
                    "34",
                    "[\"2\"]",
                    "2020-08-22",
                    "1",
                    "::1",
                    "Emergency Permit (1).pdf",
                    "1598072890_18f71a2efad774d07bd8.pdf",
                    "",
                    ""
                ],
                19,
                1
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Database\\Query.php",
            "line": 197,
            "function": "compileBinds",
            "class": "CodeIgniter\\Database\\Query",
            "type": "->",
            "args": []
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Debug\\Toolbar\\Collectors\\Database.php",
            "line": 211,
            "function": "getQuery",
            "class": "CodeIgniter\\Database\\Query",
            "type": "->",
            "args": []
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Debug\\Toolbar\\Collectors\\BaseCollector.php",
            "line": 307,
            "function": "display",
            "class": "CodeIgniter\\Debug\\Toolbar\\Collectors\\Database",
            "type": "->",
            "args": []
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Debug\\Toolbar.php",
            "line": 128,
            "function": "getAsArray",
            "class": "CodeIgniter\\Debug\\Toolbar\\Collectors\\BaseCollector",
            "type": "->",
            "args": []
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Debug\\Toolbar.php",
            "line": 353,
            "function": "run",
            "class": "CodeIgniter\\Debug\\Toolbar",
            "type": "->",
            "args": [
                1598072890.424345,
                0.0754,
                {
                    "uri": {},
                    "config": {
                        "baseURL": "http://localhost/works/SciHorizon/public/",
                        "indexPage": "",
                        "uriProtocol": "REQUEST_URI",
                        "defaultLocale": "en",
                        "negotiateLocale": false,
                        "supportedLocales": [
                            "en"
                        ],
                        "appTimezone": "Asia/Calcutta",
                        "charset": "UTF-8",
                        "forceGlobalSecureRequests": false,
                        "sessionDriver": "CodeIgniter\\Session\\Handlers\\FileHandler",
                        "sessionCookieName": "ci_session",
                        "sessionExpiration": 7200,
                        "sessionSavePath": "D:\\Xampp\\htdocs\\works\\SciHorizon\\writable\\session",
                        "sessionMatchIP": false,
                        "sessionTimeToUpdate": 300,
                        "sessionRegenerateDestroy": false,
                        "cookiePrefix": "",
                        "cookieDomain": "",
                        "cookiePath": "/",
                        "cookieSecure": false,
                        "cookieHTTPOnly": false,
                        "proxyIPs": "",
                        "CSRFTokenName": "csrf_test_name",
                        "CSRFHeaderName": "X-CSRF-TOKEN",
                        "CSRFCookieName": "csrf_cookie_name",
                        "CSRFExpire": 7200,
                        "CSRFRegenerate": true,
                        "CSRFRedirect": true,
                        "CSPEnabled": false
                    }
                },
                {
                    "CSP": {}
                }
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Filters\\DebugToolbar.php",
            "line": 78,
            "function": "prepare",
            "class": "CodeIgniter\\Debug\\Toolbar",
            "type": "->",
            "args": [
                {
                    "uri": {},
                    "config": {
                        "baseURL": "http://localhost/works/SciHorizon/public/",
                        "indexPage": "",
                        "uriProtocol": "REQUEST_URI",
                        "defaultLocale": "en",
                        "negotiateLocale": false,
                        "supportedLocales": [
                            "en"
                        ],
                        "appTimezone": "Asia/Calcutta",
                        "charset": "UTF-8",
                        "forceGlobalSecureRequests": false,
                        "sessionDriver": "CodeIgniter\\Session\\Handlers\\FileHandler",
                        "sessionCookieName": "ci_session",
                        "sessionExpiration": 7200,
                        "sessionSavePath": "D:\\Xampp\\htdocs\\works\\SciHorizon\\writable\\session",
                        "sessionMatchIP": false,
                        "sessionTimeToUpdate": 300,
                        "sessionRegenerateDestroy": false,
                        "cookiePrefix": "",
                        "cookieDomain": "",
                        "cookiePath": "/",
                        "cookieSecure": false,
                        "cookieHTTPOnly": false,
                        "proxyIPs": "",
                        "CSRFTokenName": "csrf_test_name",
                        "CSRFHeaderName": "X-CSRF-TOKEN",
                        "CSRFCookieName": "csrf_cookie_name",
                        "CSRFExpire": 7200,
                        "CSRFRegenerate": true,
                        "CSRFRedirect": true,
                        "CSPEnabled": false
                    }
                },
                {
                    "CSP": {}
                }
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\Filters\\Filters.php",
            "line": 199,
            "function": "after",
            "class": "CodeIgniter\\Filters\\DebugToolbar",
            "type": "->",
            "args": [
                {
                    "uri": {},
                    "config": {
                        "baseURL": "http://localhost/works/SciHorizon/public/",
                        "indexPage": "",
                        "uriProtocol": "REQUEST_URI",
                        "defaultLocale": "en",
                        "negotiateLocale": false,
                        "supportedLocales": [
                            "en"
                        ],
                        "appTimezone": "Asia/Calcutta",
                        "charset": "UTF-8",
                        "forceGlobalSecureRequests": false,
                        "sessionDriver": "CodeIgniter\\Session\\Handlers\\FileHandler",
                        "sessionCookieName": "ci_session",
                        "sessionExpiration": 7200,
                        "sessionSavePath": "D:\\Xampp\\htdocs\\works\\SciHorizon\\writable\\session",
                        "sessionMatchIP": false,
                        "sessionTimeToUpdate": 300,
                        "sessionRegenerateDestroy": false,
                        "cookiePrefix": "",
                        "cookieDomain": "",
                        "cookiePath": "/",
                        "cookieSecure": false,
                        "cookieHTTPOnly": false,
                        "proxyIPs": "",
                        "CSRFTokenName": "csrf_test_name",
                        "CSRFHeaderName": "X-CSRF-TOKEN",
                        "CSRFCookieName": "csrf_cookie_name",
                        "CSRFExpire": 7200,
                        "CSRFRegenerate": true,
                        "CSRFRedirect": true,
                        "CSPEnabled": false
                    }
                },
                {
                    "CSP": {}
                },
                null
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\CodeIgniter.php",
            "line": 422,
            "function": "run",
            "class": "CodeIgniter\\Filters\\Filters",
            "type": "->",
            "args": [
                "profile/createArticle",
                "after"
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\system\\CodeIgniter.php",
            "line": 312,
            "function": "handleRequest",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->",
            "args": [
                null,
                {
                    "handler": "file",
                    "backupHandler": "dummy",
                    "storePath": "D:\\Xampp\\htdocs\\works\\SciHorizon\\writable\\cache/",
                    "cacheQueryString": false,
                    "prefix": "",
                    "memcached": {
                        "host": "127.0.0.1",
                        "port": 11211,
                        "weight": 1,
                        "raw": false
                    },
                    "redis": {
                        "host": "127.0.0.1",
                        "password": null,
                        "port": 6379,
                        "timeout": 0,
                        "database": 0
                    },
                    "validHandlers": {
                        "dummy": "CodeIgniter\\Cache\\Handlers\\DummyHandler",
                        "file": "CodeIgniter\\Cache\\Handlers\\FileHandler",
                        "memcached": "CodeIgniter\\Cache\\Handlers\\MemcachedHandler",
                        "predis": "CodeIgniter\\Cache\\Handlers\\PredisHandler",
                        "redis": "CodeIgniter\\Cache\\Handlers\\RedisHandler",
                        "wincache": "CodeIgniter\\Cache\\Handlers\\WincacheHandler"
                    }
                },
                false
            ]
        },
        {
            "file": "D:\\Xampp\\htdocs\\works\\SciHorizon\\public\\index.php",
            "line": 61,
            "function": "run",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->",
            "args": []
        }
    ]
}
Reply


Messages In This Thread
"message": "Uninitialized string offset: 0" - by regimon - 08-21-2020, 10:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB