Jump to content

Unknown column 'cp.time_end' in 'field list'


btek

Recommended Posts

Hello

 

 

When I click clients in my back office I have this error. What can I do with this? Please help.

 

 

 

Unknown column 'cp.time_end' in 'field list'

 

        SELECT c.date_add, COUNT(cp.id_page) AS pages, TIMEDIFF(MAX(cp.time_end), c.date_add) as time, http_referer,INET_NTOA(ip_address) as ipaddress
        FROM `ps_guest` g
        LEFT JOIN `ps_connections` c ON c.id_guest = g.id_guest
        LEFT JOIN `ps_connections_page` cp ON c.id_connections = cp.id_connections
        WHERE g.`id_customer` = 135
        GROUP BY c.`id_connections`
        ORDER BY c.date_add DESC
        LIMIT 10

at line 613 in file classes/db/Db.php

 

607.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
608.         }
609.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
610.         {
611.             if ($sql)
612.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
613.             throw new PrestaShopDatabaseException($this->getMsgError());
614.         }
615.     }
616.
617.     /**
Link to comment
Share on other sites

Heh :) ok I add

 

 

time_end                    tinyint(4)     Tak NULL

date_add                   tinyint(4)     Tak NULL

ip_address                 tinyint(4)     Tak NULL   

 

but not work, error the same.

 

Everything after upgrade, I have few similar problems.

If I repair it, I will be able to fix other problems.

Edited by btek (see edit history)
Link to comment
Share on other sites

I install prestashop and I have the same table and columns in ps_guest.

 

I don't need adding more. 

 

I don't know what to do now.

When I disable debug mode everythink is fine, but this is't solution.

 

 

Ok I have solution. In phpmyadmin:

 

 

ALTER TABLE ps_connections_page ADD time_end DATETIME NULL DEFAULT NULL ;

 

 

I have't time_end column in ps_connection.

 

Mark as solved.

Edited by btek (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...