I have an image field with the output set to 'Single-file when populated, null when empty' which outputs a PageImage object fine normally, but when I load it using ajax the same field always outputs a PageImages array with a single image.
What could be causing this?
Processwire 3.0.182
PHP 7.3
MariaDB 10.3
Nginx
I'm updating a processwire site from 3.0.16 to the latest version and immediately get this error: - Fatal error: Exception: SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class (in ......./public_html/wire/core/ProcessWire.php line 494) #0 ............../public_html/wire/core/ProcessWire.php(302): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #1 ..................../public_html/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config)) #2 {main} in ........./public_html/index.php on line 64
As index and htacess haven't changed i just swapped out the wire directory as specified on https://processwire.com/docs/start/install/upgrade/#general-upgrade-process
Site is on php 7.3, db is mariadb 10.3
I have a front end form for creating new pages, repeater and repeater matrix field don't seem to save any data. I was considering handling the data manually but can't seem to get anything useful from the post data, are there any methods i can use?
Is there an easy way to get a pages index within a given pagearray similar to how $page->index() works with siblings. I'm trying to do a index of total count but using all pages of a grand parent page so essentially using all siblings and cousins.
I'm using the page renderer to compile html emails as below. The problem is aoim hooks Page::render which causes an error. Is there any way to render a page without calling any hooks?
$page->render('emails/base.php', (array) $data), 'subject' => $page->get('subject|title')