Comments (8)
Thank you very much for your contribution, now you can verify, the error is corrected
from php-grapesjs.
the first error comes if we didn't upload error and the second one comes if we fill all inputs. Also the page doesn't create
from php-grapesjs.
After adding a folder 'uploads' reduces some errors but the page is still not created
from php-grapesjs.
After adding a folder 'uploads' reduces some errors but the page is still not created
add.php is updated now.
from php-grapesjs.
There is some sql error so i echo it.. have a look.
from php-grapesjs.
Thank u for ur help but i solved the error
add this line in add.php after $parent = $_POST['parent']; ---
if(!is_int($parent)){
$parent = 0;
}
from php-grapesjs.
Thank u for ur help but i solved the error
add this line in add.php after $parent = $_POST['parent']; ---if(!is_int($parent)){
$parent = 0;
}
In the page table, parent is default '0', if not is selected you can use
// If parent not is integer or is empty
if (!is_int($parent) || empty($parent)) {
$parent = 0;
}
// Store in folder pages
$directory = 'pages/';
//Check if the directory already exists.
if (!is_dir($directory)) {
//Directory does not exist, so lets create it.
mkdir($directory, 0755, true);
}
// If you use and make php file
// $link_path = $directory . $link . ".php";
// If you use and make html file
$link_path = $directory . $link . ".html";
$myfile = fopen($link_path, "w") or die("Unable to open file!");
// For redirect php
// $txt = '';
// For redirect html
$txt = '<script>window.location.replace("../view.php?id=' . $last_id . '");</script>';
fwrite($myfile, $text);
fclose($myfile);
from php-grapesjs.
Sorry this code is for php
// For redirect php
$txt = '';
If not see the code check last update, I added your code
from php-grapesjs.
Related Issues (20)
- Undeclared Variables I Included HOT 1
- Missing images folder HOT 2
- Error with GrapesJS HOT 6
- Erro ao atualizar o banco de dados HOT 3
- Problema ao declarar variável $base HOT 1
- Problema com os ícones do editor de imagem do GrapesJS HOT 1
- Installation Chaos HOT 1
- Installation fails on Step 5 HOT 3
- Installation on localhost HOT 2
- Installation and Running Problem HOT 2
- Error during installation Unknown column 'SITE_PATH;' HOT 2
- Importing scripts with the main code HOT 1
- Some question HOT 2
- Install bug HOT 1
- Installation won´t start HOT 9
- Problem in installation HOT 1
- After installation HOT 2
- help for install on local host HOT 7
- Error during database registration HOT 1
- Alert refresh causes problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-grapesjs.