Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - twolsey

1
Issues / Fatal error: Cannot redeclare str_contains()
Hello
On my first launch of PHPRad, I am receiving the following error when trying to preview the webpages.

Fatal error: Cannot redeclare str_contains() in C:\xampp\htdocs\project2\helpers\Functions.php on line 524
__________________________________________________________________________________________________________________
function str_contains($needle, $haystack)
{
   return strpos($haystack, $needle) !== false;
}

thank you
3
Questions / How can I make a dependent dropdown field reset to placeholder text on the LIST?
Hello
I have a master dropdown field and another dependent dropdown field.  This functionality works great on Edit Page for a record. On the Edit page, when I change the master dropdown field, the dependent dropdown changes to the Placeholder text "Select a value..." and the dependent select options update as they should.
On the LIST page where I have inline edit enabled, how can I make it so the dependent dropdown resets to the placeholder text "Select a value..." when I change the master dropdown value?

thanks
Tony
4
Issues / Import Issues for CSV files
Hello
I am receiving the following error page when trying to import csv file.

thanks
Tony


Exception Traces
This will only be displayed in DEVELOPMENT_MODE.

Error Message
stripos(): Argument #1 ($haystack) must be of type string, array given

File
C:\xampp\htdocs\edgeestimate\libs\Uploader.php On Line 169

Stack Trace
1 C:\xampp\htdocs\edgeestimate\libs\Uploader.php(169): stripos(Array, 'csv')
2 C:\xampp\htdocs\edgeestimate\libs\Uploader.php(246): Uploader->validate(Array)
3 C:\xampp\htdocs\edgeestimate\libs\Uploader.php(119): Uploader->prepareFiles()
4 C:\xampp\htdocs\edgeestimate\libs\Uploader.php(81): Uploader->initialize(Array, Array)
5 C:\xampp\htdocs\edgeestimate\app\controllers\TblratecategoryController.php(102): Uploader->upload(Array, Array)
6 C:\xampp\htdocs\edgeestimate\system\Router.php(196): TblratecategoryController->import_data(Array)
7 C:\xampp\htdocs\edgeestimate\system\Router.php(109): Router->run('tblratecategory/import_data')
8 C:\xampp\htdocs\edgeestimate\index.php(106): Router->init()
5
Issues / Fatal error: Cannot redeclare str_contains()
Hello
I am receiving this error when trying to publish first project.
thank you

Fatal error: Cannot redeclare str_contains() in C:\xampp\htdocs\edgeestimate\helpers\Functions.php on line 524

/**
 * returns true if $needle is a substring of $haystack
 * @return  bool
 */
function str_contains($needle, $haystack)
{
   return strpos($haystack, $needle) !== false;
}