Forms not working

Permalink
Hi
I have a rental site that was getting no traffic. I tested 6 of the forms.
I've looked at the forms report and get the following.
Exception Occurred: /vhost/vhost16/r/e/n/rentvillacrete.com/www/concrete/blocks/form/controller.php:353 Oops, something is wrong with the form you posted (it doesn't have a question set id). (0)

Fairly new to concrete5 - can anyone help.

tjbphoto
 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
You have a SuperMint theme css override that is calling for a font size of 0px
Hence the forms do not display any text!
Take a look at this page..
http://www.rentvillacrete.com/ThemeSupermint/tools/override?cID=1
tjbphoto replied on at Permalink Reply
tjbphoto
Hi
I must be blind but I can't see anything wrong. Explain please.
Many thanks.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
This is the content of your file as I view it this morning
/*
** Let's start with some override from dashboard option's page
** This file is generated by php and placed into theme_supermint / elements / overrides.css.php
** Page name : Home / Theme preset Name :  / Theme preset ID : 
*/
/* --- Text Overrides --- */
/* -- FONTS --- */
.alternate, .tp-caption.big_alternate  {
      font-size:em;
}
body .ccm-page, .ccm-page p, .ccm-page li, .ccm-page td, .ccm-page textarea {
   }
h1,.h1 {    font-size:0px}
h2,.h2 {    font-size:0px}
h3,.h3 {    font-size:0px}
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Thats odd, if I revisit or refresh the page I can see this
/*
** Let's start with some override from dashboard option's page
** This file is generated by php and placed into theme_supermint / elements / overrides.css.php
** Page name : Home / Theme preset Name : Base / Theme preset ID : 1
*/
/* --- Text Overrides --- */
/* -- FONTS --- */
.alternate, .tp-caption.big_alternate  {
   font-family:'Pacifico', sans;
   text-transform:none !important;
   font-weight : normal;
   font-size:0.8em;
}
body .ccm-page, .ccm-page p, .ccm-page li, .ccm-page td, .ccm-page textarea {
   font-family:'Roboto', sans;

So the css generation is failing somewhere?
ConcreteOwl replied on at Permalink Reply 2 Attachments
ConcreteOwl
This is a cache problem I think..
If I visit your site in a browser that has not been used to visit your site previously (no cache)
I see the pages as per the screenshots I have attached to this post.
tjbphoto replied on at Permalink Reply
tjbphoto
Hi
When I empty cache on browser there is no text on the site until I refresh. I'll look at the cache settings.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
This could be your server using a caching system in the back-end.
It appears to me that the file is being delivered to the browser before it has been compiled.
Perhaps check your servers control panel and switch off any caching there.
tjbphoto replied on at Permalink Reply
tjbphoto
Hi again
I've turned off some of the caching and ( I think ) the problem with the text not appearing may be solved.
The form problem has not resolved. There are 4 forms on the page. Could this be the problem.

Regards
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
In your /application/config/generated_overrides/concrete.php do you have something like this
'email' => array(
        'enabled' => true,
        'default' => array(
            'address' => 'your_default_email_address_here',
            'name' => 'your_default_from_name_here'
        ),
        'form_block' => array(
            'address' => 'your_default_email_address_here'
        )
    ),

If not, that could be your problem..
tjbphoto replied on at Permalink Reply
tjbphoto
Hi
I'll look at that but in the meantime, I am getting this in the logs:

Exception Occurred: /vhost/vhost16/r/e/n/rentvillacrete.com/www/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:66 An exception occurred while executing 'INSERT INTO CollectionVersionBlocksOutputCache (cID, cvID, bID, arHandle, btCachedBlockOutput, btCachedBlockOutputExpires) VALUES (?, ?, ?, ?, ?, ?)' with params ["339", "73", "8128", "Main - 4 : 2995", "WEEKLY RATES", 1673341863]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '339-73-8128-Main - 4 : 2995' for key 'PRIMARY' (0)
tjbphoto replied on at Permalink Reply
tjbphoto
Hi
Code from page:

<?php
/**
 * -----------------------------------------------------------------------------
 * Generated 2018-01-10T10:11:14+00:00
 *
 * DO NOT EDIT THIS FILE DIRECTLY
 *
 * @item      misc.do_page_reindex_check
 * @group     concrete
 * @namespace null
 * -----------------------------------------------------------------------------
 */
return array(
    'locale' => 'en_GB',
    'site' => 'Rent Villa Crete',
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
what is the date time stamp for that log file?
This error is basically saying that the data is already in the database and it cannot be entered a second time..
tjbphoto replied on at Permalink Reply
tjbphoto
Hi
I've included both from this morning. Quite different from what I was getting before. I don't understand the parameter references.
BTW Thanks for all this help.

10 Jan 2018, 09:11:34 Exceptions Guest Exception Occurred: /vhost/vhost16/r/e/n/rentvillacrete.com/www/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:66 An exception occurred while executing 'INSERT INTO CollectionVersionBlocksOutputCache (cID, cvID, bID, arHandle, btCachedBlockOutput, btCachedBlockOutputExpires) VALUES (?, ?, ?, ?, ?, ?)' with params ["344", "68", "1178", "Main", "\n 1050\n per week", 1673341894]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '344-68-1178-Main' for key 'PRIMARY' (0)
10 Jan 2018, 09:11:03 Exceptions Guest Exception Occurred: /vhost/vhost16/r/e/n/rentvillacrete.com/www/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:66 An exception occurred while executing 'INSERT INTO CollectionVersionBlocksOutputCache (cID, cvID, bID, arHandle, btCachedBlockOutput, btCachedBlockOutputExpires) VALUES (?, ?, ?, ?, ?, ?)' with params ["339", "73", "8128", "Main - 4 : 2995", "WEEKLY RATES", 1673341863]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '339-73-8128-Main - 4 : 2995' for key 'PRIMARY' (0)
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I will send you a Private Message
tjbphoto replied on at Permalink Reply
tjbphoto
Hello again weyboat

Just to backtrack
On the pages, 20 in all.
One form as accordion - showing in reports not emailing to client.
One form as open type - showing in report and emailing client.
One form as accordion - showing as exception in report.
One form as accordion ( duplicate of above ) - showing as latest exception in logs.
One form as accordion - showing in reports not emailing to client.
tjbphoto replied on at Permalink Reply
tjbphoto
Private message reply.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Hi Terry
Please check your latest Private Message
tjbphoto replied on at Permalink Reply
tjbphoto
Hi
'tis a bit worrying as the forms that WERE working yesterday are no longer working today.
Leave it with you.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Hmm
The only thing that has been changed is the adjustments you made to the cache settings?
Did you get my last PM I sent this morning?
tjbphoto replied on at Permalink Reply
tjbphoto
Sorry, nothing received today.
tjbphoto replied on at Permalink Reply
tjbphoto
If you check the logs, there seems to be another problem each time I log on.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Terry

I am not working on your live site, I am working on a copy of it on my
development server.

This is how I do all the testing without making changes to a live site.

I only make changes to the live site, when I have thoroughly tested my
copy of the site in my local machine..

Can you copy the error and email it to me please.


On 11/01/2018 10:04, concrete5 Community wrote:
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I have sent you a PM with a file attachment.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I have sent you an email, please check your inbox (not a PM an email)
mnakalay replied on at Permalink Reply
mnakalay
I can't believe that SuperMint tool is publicly available. Access should be protected, that's crazy
tjbphoto replied on at Permalink Reply
tjbphoto
Thank you everyone
The issue has been resolved.
It would appear that the main culprit was my server over at Easyspace. I have moved to Krystal, recommended by weyboat who did most if not all of the work.
This forum has some very nice people contributing.