Getting error on page

9 posts by 2 authors in: Forums > CMS Builder
Last Post: February 15, 2024   (RSS)

By Robarbh - February 11, 2024 - edited: February 12, 2024

I am getting error on a proposal page

Contact Us : Questions-Feedback

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home1/arsicbro/public_html/machform/includes/common-validator.php on line 146 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PhpCaptcha has a deprecated constructor in /home1/arsicbro/public_html/machform/lib/php-captcha/php-captcha.inc.php on line 71 Error connecting to the database: SQLSTATE[HY000] [1045] Access denied for user 'rick123_admin'@'localhost' (using password: YES)

Is this entry correct

under contact_forms.ini.php

customUploadDir' => '/hsphere/local/home/c359352/arsicbros.com/cmsAdmin/uploads/forms/',
'customUploadUrl' => '/cmsAdmin/uploads/forms/',

Also in the all container options it shows this error

Upload directory '/hsphere/local/home/c359352/123disposal.com/cmsAdmin/uploads/containers/' doesn't exist!.

Robert Hedrick

By Dave - February 12, 2024

Hi Robert, 

The first two errors seem to be related to a script called MachForm.  You might see if there's an updated version of their script that you could install that fixes those issues.

For the upload path issues, it's easier to edit those through the CMS.  Add this to your CMS URL after admin.php

?menu=database&action=editField&tableName=cms_contact_forms&fieldname=content_above&

Then try modifying the directory path and it will show a preview of the path it's pointing to.  You can use relative paths like this: forms/

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

Dave,

Were would i get the script

and also where would i put this line

as I am relaly new to cms

Thanks

Robert

Robert Hedrick

By Dave - February 12, 2024

Hi Robert, 

I'd try google for MachForm to see if you can find the source. 

And try accessing your CMS here to see the upload settings: 
https://arsicbros.com/cmsAdmin/admin.php?menu=database&action=editField&tableName=cms_contact_forms&fieldname=content_above&

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

Dave,

do i put the line inside admin.php or another php

Robert Hedrick

By Dave - February 12, 2024

Hi Robert, 

If you click the link it should take you to the confirm menu in the CMS where you can set the upload paths.

Dave Edis - Senior Developer
interactivetools.com

By Robarbh - February 13, 2024 - edited: February 14, 2024

Dave,

I have a new error on the Contact Us : Proposal Request

SQL: [25] SELECT * FROM mf_settings Params: 0 Query Failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'arsicbro_cms.mf_settings' doesn't exist

what did I do wrong

I copied everything from 123 Disposal and restored the db

Robert Hedrick

By Dave - February 15, 2024

Hi Robert, 

That one looks like it's related to MachForm (mf_ prefix on table). 

It looks like it's looking for the table "mf_settings" in the database "arsicbro_cms" but it's not there.

We don't make MachForm or know anything about it, but in general, you'll need to figure out how to move that data over and confirm that the table is created.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com