AjaxUpload php showing on front end

I am using AjaxUpload on PHP 8 with only one issue:

$_SESSION[“ajaxupload”]:

Array
(
)

is showing on the fron end. Debug is switched off and all TPLs are filled in.

Here is my formit call


[[!FormIt? 
    &preHooks=`Formit2AjaxUpload`
    &hooks=`AjaxUpload2Formit,email`
    &ajaxuploadFieldname=`pageImage`
    &ajaxuploadTarget=`images/st/`
    &ajaxuploadClearQueue=`1`
    &ajaxuploadUid=`pageImage`
    &emailTo=`mila.lozanova@proenviro.co.uk`
    &emailFrom=`mila.lozanova@proenviro.co.uk`
    &emailTpl=`forum_email_tpl`
    &formName=`IDNI - New Sustainable Technology`
    &validationErrorMessage=`The form contains errors!`
    &successMessage=`Form submitted successfully!`
    &formFields=`id,
                company_name,
                name,
                email,
                company_address,
                postcode,
                pagetitle,
                category,
                subcategory,
                details`
    &fieldNames=`id==Id,
                company_name==Company Name,
                name==Contact Name,
                email==Email,
                company_address==Address,
                postcode==Postcode,
                pagetitle==Page Title,
                category==Category,
                subcategory==Subcategory,
                details==Content`
    &validate=`
                company_name:required,
                name:required,
                email:email:required,
                company_address:required,
                postcode:required,
                pagetitle:required,
                category:required,
                subcategory:required,
                `
    ]]

And ajax call:

[[!AjaxUpload?
                        &uid=`pageImage`
                        &addJquery=`1`
                        &addJscript=`1`
                        &maxFiles=`1`
                        &maxFilesizeMb=`32`
                        &allowedExtensions=`jpg,jpeg,png,gif`
                        &uploadSectionTpl=`tplAjaxuploadUploadSectionNew`
                    ]]

Once i uploaded a file it changes to:

$_SESSION["ajaxupload"]:

Array
(
    [f428b41f67f0612ea28eedd2161bf563] => Array
        (
            [originalBaseUrl] => /home/USERFOLDER/WEBFOLDER/assets/components/ajaxupload/cache/
            [path] => /home/USERFOLDER/WEBFOLDER/assets/components/ajaxupload/cache/
            [base_url] => /assets/components/ajaxupload/cache/
            [uniqueName] => fffddbd74133669f8895056a4e52937f.jpg
            [originalName] => adobestock-241828834.7da8854d.jpg
            [thumbName] => 044a3cff012fc770e26a4d8e33d645a0.jpg
        )

)

Any help with this would be greatly appreciated.

The output looks like the debug message:


What versions of MODX, AjaxUpload and FormIt are you using?

Thanks for your reply.

AjaxUpload V1.6.5
Formit V5.0.1

And yes i do agree that it looks like a debug message.

At the very least i can comment out the debug message in the php, but i dont really like messing with plugin core files as it can cause issues on updates.

@halftrainedharry

Dont mind me. I am an idiot. I had modx debug setting set on 1 and completely forgot about it. lol

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.