Error: Call to a member function text() on null
Ticket Number:
"piOXpgSDHlVLbsPMkc7WSFWVsEFnGZCfcD0jHRV04Dw"
—
Email this ticket
Class: Error
in file: /app/view/about/contact-us/index.php
on line: 47
Call to a member function text() on null
-
- <form method="post">
- <fieldset>
- <div class="col-1-2 alpha">
- <label for="first_name">First Name <span class="required">*</span></label>
- <?php $f->text('first_name'); ?>
- </div>
- <div class="col-1-2 omega">
- <label for="last_name">Last Name <span class="required">*</span></label>
- <?php $f->text('last_name'); ?>
- </div>
- include(void) at file: /app/app.php on line: 217
- extract($this->data);
- if(!isset($app)) {
- $app = $this->app;
- }
- include $this->template;
- }
-
- public function partial($name, $data=null) {
- $this->app->render($this->getPartialTemplate($name), $data);
- }
- SimpleTemplate->render(void) at file: /app/app.php on line: 45
-
- public function render($template, $data=array()) {
- $template = new SimpleTemplate($template, $this);
- $template->data = $data;
- $template->render();
- }
-
- public function fourOhFour() {
- if(file_exists($_SERVER['DOCUMENT_ROOT'] . '/404/index.php')) {
- header('HTTP/1.0 404 Not Found');
- App->render(void) at file: /app/pages.php on line: 70
- $app->render($_SERVER['DOCUMENT_ROOT'] . '/app/view/' . $app->url . '/index.php');
- } else {
- }
- } elseif(file_exists($_SERVER['DOCUMENT_ROOT'] . '/app/view/' . $app->url . '/index.php')) {
- $app->render($_SERVER['DOCUMENT_ROOT'] . '/app/view/' . $app->url . '/index.php');
- }
- $content = ob_get_clean();
-
- include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/shared/responsive/general-content/fetch/index.php';
- $_gc_row = $row;?>
- GCPage(void) at file: /app/app.php on line: 108
-
- public function dispatch($route) {
- $callable = (count($route) == 0 || !is_callable($route[0])) ? $this->default_handler : $route[0];
- $route[0] = $this->app;
- call_user_func_array($callable, $route);
- }
-
- public function call() {
- if(isset($this->static_routes[$this->app->url])) {
- $this->dispatch($this->static_routes[$this->app->url]);
- AppDispatchMiddleware->dispatch(void) at file: /app/app.php on line: 113
- }
-
- public function call() {
- if(isset($this->static_routes[$this->app->url])) {
- $this->dispatch($this->static_routes[$this->app->url]);
- return;
- } else {
- foreach($this->regex_routes as $pattern=>$route) {
- list($pattern, $params) = $this->toRegexPattern($pattern);
- if(preg_match('#^' . $pattern . '$#', $this->app->url, $matches)) {
- AppDispatchMiddleware->call(void) at file: /app/app.php on line: 150
-
- public function call() {
- ob_start();
-
- $this->next->call();
-
- if($this->name != '') {
- $this->data['content'] = ob_get_clean();
- $this->app->render($this->dir . '/' . $this->name . '.php', $this->data);
- } else {
- LayoutMiddleware->call(void) at file: /app/app.php on line: 30
- $this->url = $url;
- }
-
- $this->addMiddleware($this->router);
- $this->middleware[0]->call();
- }
-
- public function addMiddleware(IAppMiddleware $middleware) {
- $this->middleware[] = $middleware;
- $middleware->app = $this;
- App->dispatch(void) at file: /index.php on line: 86
- $app->layout = new LayoutMiddleware($_SERVER['DOCUMENT_ROOT'] . '/app/layout');
- $app->layout->name = 'front';
- $app->addMiddleware($app->layout);
-
- $app->dispatch();
Request
- Request URI
- /about/contact-us
- Request HOST
- amerex-defense.tmg04.com
- Request Method
- GET
- Request Date/Time
- 03/14/2025 00:03:12
- HTTPS
- No
- Accept
- */*
- User-Agent
- Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
- Accept-Encoding
- gzip, br, zstd, deflate
- Host
- amerex-defense.tmg04.com
Remote
- Remote Address
- 3.131.37.237
- Remote Port
- 55893
- Remote Host
- ec2-3-131-37-237.us-east-2.compute.amazonaws.com
PHP Info
- PHP Version
- 7.4.3-4ubuntu2.28
- System
- Linux trilix-vmweb06 5.4.0-208-generic #228-Ubuntu SMP Fri Feb 7 19:41:33 UTC 2025 x86_64
- Peak Memory Usage
- 719.43 KB (736696 bytes)
- Include Path
- .:/home/amerex-defense/htdocs/:.:/usr/share/php
- Magic Quotes
Deprecated: Function get_magic_quotes_runtime() is deprecated in /home/mcwane2/htdocs/classes/errors.class.php on line 490
No
- Included Files
- /index.php
/admin/includes/autoload.php
/home/mcwane2/htdocs/admin/includes/autoload.php
/home/mcwane2/htdocs/classes/errors.class.php
/home/mcwane2/htdocs/admin/includes/settings.php
/app/app.php
/app/pages.php
/home/mcwane2/htdocs/includes/shared/responsive/routes/corporate-responsibility.php
/app/config/titles.php
/app/view/about/contact-us/index.php
/home/mcwane2/htdocs/includes/shared/fetch/sales-reps/fetch-as-list.php
/home/mcwane2/htdocs/classes/db.class.php
/home/mcwane2/htdocs/classes/querybuilder.class.php
/home/mcwane2/htdocs/classes/utils.class.php
- Streams wrappers
- https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip
- Streams filters
- zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*
- Extensions
- apache2handler, bz2, calendar, Core, ctype, curl, date, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDFlib, PDO, pdo_mysql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib
Simple Backtrace
#0 /home/amerex-defense/htdocs/app/app.php 217 include
#1 /home/amerex-defense/htdocs/app/app.php 45 SimpleTemplate->render
#2 /home/amerex-defense/htdocs/app/pages.php 70 App->render
#3 /home/amerex-defense/htdocs/app/app.php 108 GCPage
#4 /home/amerex-defense/htdocs/app/app.php 113 AppDispatchMiddleware->dispatch
#5 /home/amerex-defense/htdocs/app/app.php 150 AppDispatchMiddleware->call
#6 /home/amerex-defense/htdocs/app/app.php 30 LayoutMiddleware->call
#7 /home/amerex-defense/htdocs/index.php 86 App->dispatch