PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, March 17, 2022

[FIXED] An exception occured while executing 'INSERT INTO Pagetemplates... Concrete5

 March 17, 2022     concrete5, exception, mamp     No comments   

Issue

I'm trying to build some websites localy with MAMP and Concrete5 but when i want to add a page template to my theme, C5 shows me this error what's going on i'm trying to follow this video:https://www.concrete5.org/documentation/developers/5.7/designing-for-concrete5/building-a-concrete5-theme/converting-an-html-template-to-a-concrete5-theme/ It seems to me that I'm the first one having this problem can someone help me out?

An exception occurred while executing 'INSERT INTO PageTemplates (pTemplateHandle, pTemplateIcon, pTemplateName, pTemplateIsInternal, pkgID) VALUES (?, ?, ?, ?, ?)' with params ["full", "full.png", "Full", 0, 0]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'full' for key 'pTemplateHandle'


Solution

Hey guys I found the solution. The problem was that I changed the name of my html doc into full.php but as the .html file extension is hidden on my pc I couldn't figure it actually still was an html doc. I had to change the doc-type somewhere else. Weird it didn't even ask if I wanted to change the doc but anyways that's the solution hopefully someone with the same problem will figure it more quickly as me now haha.



Answered By - Dorelanië
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing