49 comments found.
Hello
I believe there is an error in the “headline” variables of the general.php file and the “title” variable of the petition.php file and also the ‘headline’ variable of the news.php file. I realized this during the translation. All of this seems to have caused some inconsistency.
Sorry for this somewhat vague explanation I’m not an expert
Thank you
Hey…is there now a bug or what you mean? 
bug
Hmm not sure what you mean by inconsistency 
that doesn’t stop loading 
It seems to me that you don’t want to improve your script. Shame! We may have difficulty understanding this.
Can you send me your modified i18n files per DM?
Message erreur
RuntimeException ( 0 ) mako\i18n\loaders\Loader::loadStrings(): The [ /home/*/public_html/*/petition/app/resources/i18n/fr_FR/strings/account.php ] language file does not exist in the [ fr_FR ] language pack.
You don’t have the language files for your current language “FR”, so you have to copy/create from “resources/i18n/”
Ok
I got an error message when importing sql file
Erreur
Requête SQL :
CREATE TABLE `groups_users` ( `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, UNIQUE KEY `group_user` (`group_id`,`user_id`), KEY `group_id` (`group_id`), KEY `user_id` (`user_id`), CONSTRAINT `groups` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
MySQL a répondu : Documentation #1005 – Ne peut créer la table `jmbrunqc_petition-dev`.`groups_users` (Errcode: 150 “Foreign key constraint is incorrectly formed”) (Détails…)
Hey, did you import it with phpmyAdmin? If yes, can u check “ignore foreign keys” on import
Ok
Hi, I need help with modifying the main page layout. I would like to add a box to all other sections, (comments, signup form, footer, etc) as the one on ‘News’... Can you please help with instructions on what page to add that box? Thanks
Hi, i don’t understand what you want 
There is a folder “views” with template files, “welcome” is the main and “home/side” is the sidebar
I’ve uploaded all files and set my subdomain DocumentRoot according to your instructions, however I only get a directory listing and not the application. Are there any necessary settings for Apache or something that I’m missing?
Hi, what yoou mean by directory listing? is there one public folder?
There’s one problem when you import your sql file with phpmyadmin, you should disable foreign check
Hi thank you for your response.
I was able to import the db tables without issues, however I can’t get the site to load – I think there may be something wrong with the way I am structuring the files.
Here is how I currently have it set up (image link because I can’t get the spacing right in these comments): https://i.imgur.com/3Mf74tL.png
Is this correct or am I doing it wrong? I hope this makes sense. Thank you!
Yes, you need to upload the script into your subdomain.site.com folder…. so there is no error on the home site? Can you send me a link via PM to your demo site?
Can you help me fix this error:
SQL query:
CREATE TABLE `groups_users` ( `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, UNIQUE KEY `group_user` (`group_id`,`user_id`), KEY `group_id` (`group_id`), KEY `user_id` (`user_id`), CONSTRAINT `groups` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
MySQL said: Documentation #1215 – Cannot add foreign key constraint
Hi, did you import it with phpMyAdmin? I have to look what’s wrong
Can you try to import and check the mark for disable foreign key check?
Hi, do you plan to make it possible for users to create multiple petitions?
Hi, at the moment there’s no plan for this
Hi, is there a way to add a simple captcha? I’m also using the city field for another purpose, but when adding new rules they are not being processed. I tried the following: $rules = [ ‘name’ => [‘required’], ‘email’ => [‘required’, ‘email’], ‘token’ => [‘required’, ‘token’], ];
if ($objPetition->show_address) {
$rules = array_merge($rules, ['address' => ['required']]);
}
if ($objPetition->show_city) {
$rules = array_merge($rules, ['city' => ['required','integer','exact_length:10']);
}
In the Index.php Controller
Hi
What kind of captcha did you think of?
You should try to enable Error Display (config/application.php) display_errors
but maybe its the “exact_length:10”, i think it should be exact_length(10), ill take a look tomorrow
Any captcha would be fine, before submitting, just to avoid having people spamming the petition with automated tools. I also thought of using the unique validator rule, but I haven’t figured it out yet how it really works.
I managed to get these rules working, including the unique validator.
Now, all I need is to add a captcha to the petition page, perhaps reCAPTCHA of google? Unless you have another suggestion.
Hi,
Yes, a captcha would be an advantage, have to see when I have time for an update
Hi Team I purchase epetition script, And uploaded the files host via cpanel, I am using a shared hosting service, can you direct me how to configure the site in shared environment
Hi, is your site visible when you go to yourdomain.com/public ?
What do you mean by “Change your Domain root folder to /public”
The document root of your Domain, where you can edit your domain, there is a field for it, most is /httpdocs just add /public to it, /httpdocs/public so the domain is pointing to it
So I added the domain to point to /httpdocs/public and I am getting the following when I try to login as https://mydomain.com/login and when I type in https://mydomain.com it show nothing.
Not Found The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I would like a refund. This is unbelievable.
Hi,
Please assist with a solution on below DB error:
SQL query: CREATE TABLE `groups_users` ( `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, UNIQUE KEY `group_user` (`group_id`,`user_id`), KEY `group_id` (`group_id`), KEY `user_id` (`user_id`), CONSTRAINT `groups` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci MySQL said: Documentation #1005 – Can’t create table `petition`.`groups_users` (errno: 150 “Foreign key constraint is incorrectly formed”) (Details…)
Thank you.
purchase code to verify that you’ve purchased this item. f5f252b3-6345-49fc-a0cb-b10304c042b1 – 12 Apr 2020 REGULAR LICENSE
Hi, which version of database you are using? I tried to execute this SQL and it worked :/
Server Configuration Apache Version:2.4.41 – DocumentationServer Software:Apache/2.4.41 (Win64) PHP/7.3.12 – Port defined for Apache: 80PHP Version:7.3.12 – Documentation Loaded Extensions : apache2handler MariaDB Version: 10.4.10 – Port defined for MariaDB: 3306 – Default DBMS – Documentation MySQL Version:5.7.28 – Port defined for MySQL: 3308
Did you import it with phpMyAdmin? Can you try to uncheck “enable foreign key checks” before import your sql file?
I managed to work around the SQL error and I had problems adding a petition through admin but added manually in phpMyAdmin. My concern now is the app seems to allow users to sign petition multiple times even with same email – is there anyway to stop this? Ideally app must not allow multiple sign in a single session and should allow an email address to be used once. Your comments will be appreciated
But even then you can register with multiple email addresses, info1@example.com, info2@example.com, info3,4,5,6 etc. and an e-mail with confirmation would be at a lower rate
But you’re right, the email should only be registered once
Best solution will be to let users register first and authenticate/validate emails before allowing them to sign or confirming their sign off and make use of a capture and may be also capture IP addresses. I had a look at the code and it’s not something I can do. Will you be able to do these modifications for me and how would this cost?
how much would this cost and how long will it take you?
App was working fine on my local machine and I uploaded files to the server with all settings and DB exactly the same but now I get below error when I access both public and admin pages: Error Aw, snap! An error has occurred while processing your request.
It’s not planned to implement a user system. Did you changed your database settings in your config file?
Okay lets leave duplicates issue. I guess your last point is referring to the move to server query. I updated config file to match DB settings on the server. I exported the sql from local machine to server and expected the petition to be duplicated on the server – could this be causing the problem?
You can enabled display errors config/application.php => error_handler at the bottom and set display_errors => true
Bug Report: If the title of the petition contains a ’ character then the image doesn’t work on my system as it is named strangely and isn’t found…
Hi, could be wrong decoded, i’ll take a look, thank you
Trying to add HTML to the petition and the tip remove “raw:” from “app/resources/views/home/petition.tpl.php”, didn’t help.
Sorry, raw wouldn’t help there
i’ll remove it, so html will be avaiable for content
Working great so far, thanks for the update!
Some bugs I found:
- Settings->Background Image: I upload a JPG but it tries to link to a PNG instead.
- Admin->Petition: No way to delete Image the same way as the above image.
This JPG/PNG thing I can’t replicate now.. Not sure why it happened!
hey, So it’s a bug or not? 
Didn’t have time to investigate what went wrong and how I fixed it.
Here’s another issue:
How to moderate (delete) signatures, please?
The only way now, is directly on your database :/
its soppurted RTL and Arabic
Hi, there is no support for RTL
Hi.. Are you supporting this item? There is errors in your demo.
Hi, yes
Where did you found/see errors at demo?
regards
Hi, you can enable logger Service in your config/application.php -> services, core, LoggerService, but im not sure where you’re using it 
what do you mean about, (where I am using it)? I enabled ‘LoggerService’ and now I get a blank page with this legend: Error Aw, snap! An error has occurred while processing your request.
This is the path I am using for the petitions script: mydomain.com/directory/subdirectory/
Did you set your Domain path to /public ?
Can you PM me a link to your site or maybe FTP access?
Or enable “display_errors” in your application config, maybe we can see more 
I’ll send you login details for a moment via PM, let me know when you will be available to do so…
I’ll try tonight 
where are u located?
Warning: include(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/domain.ltd/public_html/vendor/mako/framework/src/mako/application/Application.php on line 124
Parse error: syntax error, unexpected ’:’, expecting ’;’ or ‘{’ in /home/domain.ltd/public_html/vendor/mako/framework/src/mako/application/Application.php on line 124
Whick PHP Version?
7
Did you change/removed something from your config file? It looks like you missed something
Can you send me some login data to your site via PM ? I’ll take a look tomorrow
Installing this has turned into a nightmare. I’ve started all over. Php7 is installed. Using htaccess to change Root Directory.
I keep getting a “500 Internal Server Error”
You may activate display_errors in your config/application.php file, or you can send me a link to check it out
Why did you make this so challenging to install? It’s one error message after the next for 24 hours!!!
RuntimeException ( 0 )
mako\database\connections\Connection::connect(): Failed to connect to the [ live ] database. SQLSTATEHY000 Access denied for user ’ username’@’localhost’ (using password: YES)
How do I send you a PM? This installation is stressful!!!
You should try to set your correct database credentials You can click on my name and then on the right you can send me a message
Now that the website is loading Im finding more errors.
What file did you hide the Meta Tags in?
I really want to finish this website ASAP.
which meta tags are you searching?
Looking for the file you are using for the SEO Meta Tags so I can correct the OG Image Error.
your base template is unter resources/views/layout.tpl.php, there you can change your meta tags
How? Where?
{{view:’admin.partials.navigation’}} {{view:’partials.flash’}} {{block:content}}{{endblock}}
Why isn’t the image for the petition header not uploading or displaying?
For the moment, there are only description and keywords for meta tags with backend settings.
That’s a shame.
How do I get the images to upload and to load correct?
I’ve resorted to uploading the image and hard coded it into the petition page. The image displays on the page but not on the Social Graphs. It would be very useful to be able to share links to the petition without broken images on social networks.
How much do you charge to get the bugs fixed? I’m sick of this.
most of yours bugs were wrong server settings, the meta tags for og like og:image, og:title, og:description, og:url and og:site_name is a new feature, i’ll add this on the next version
You want me to put my petition on hold till you release your next version?
Can’t you just hard code the tags for me or tell me how?
Fixed it!
Hi,
Somehow i missed something in the installation as i always get the follwing error message when uploading a image.
RuntimeException ( 0 ) mako\pixl\Image::__construct(): The image [ ] does not exist.
Can you let me know what to check.
Thx RJ
Hi
Looks like you didn’t provide an image, was it too big or something?
Maybe you can find some info at the logs /app/storage/logs
or if you can give me some access to your ftp, via pm not here 
regards
Hello how can I localhost it? The redirect to /public is how done on localhost? It does not work with PHP 5.6 just extracting it to www and configuring db file.
Parse error: syntax error, unexpected ’:’, expecting ’;’ or ‘{’ in C:\AppServ\www\petition\vendor\mako\framework\src\mako\application\Application.php on line 124
You can setup your own host on local, you need PHP > 7
i used now 7.1 php with this result: “http://localhost/petition/public/app/init.php” 404 Not Found The resource you requested could not be found. It may have been moved or deleted.
Class logger does not exist on line [ 324 ] in [ C:\AppServ\www\petition\vendor\mako\framework\src\mako\syringe\Container.php ]
I must say I am not getting the logic of hosting it with /public. Do i require to use composer and npm install first with the dependencies? Or is vendor folder out of the box filled in zip already?
I would love to use the project but it is challenging the installation for me. Please help me. Thanks a lot for any solution. I would really like this petition script.
Now it shows with error message this: “RuntimeException ( 0 ) mako\database\connections\Connection::connect(): Failed to connect to the [ live ] database. could not find driver Stack trace 17. C:\AppServ\www\petition\vendor\mako\framework\src\mako\database\connections\Connection.php : 261 mako\database\connections\Connection -> connect() 16. C:\AppServ\www\petition\vendor\mako\framework\src\mako\database\ConnectionManager.php : 208 mako\database\connections\Connection -> __construct(...) 15. C:\AppServ\www\petition\vendor\mako\framework\src\mako\common\ConnectionManager.php : 48 mako\database\ConnectionManager -> connect(...) 14. C:\AppServ\www\petition\vendor\mako\framework\src\mako\database\midgard\ORM.php : 243 mako\common\ConnectionManager -> connection(...) 13. C:\AppServ\www\petition\vendor\mako\framework\src\mako\database\midgard\ORM.php : 722 mako\database\midgard\ORM -> getConnection() 12. C:\AppServ\www\petition\vendor\mako\framework\src\mako\database\midgard\ORM.php : 734 mako\database\midgard\ORM -> builder() 11. C:\AppServ\www\petition\app\controllers\Base.php : 25 mako\database\midgard\ORM :: get(...) 10. C:\AppServ\www\petition\app\controllers\Index.php : 22 app\controllers\Base -> beforeAction() 9. C:\AppServ\www\petition\vendor\mako\framework\src\mako\syringe\Container.php : 476 app\controllers\Index -> beforeAction() 8. C:\AppServ\www\petition\vendor\mako\framework\src\mako\http\routing\Dispatcher.php : 175 mako\syringe\Container -> call(...) 7. C:\AppServ\www\petition\vendor\mako\framework\src\mako\http\routing\Dispatcher.php : 211 mako\http\routing\Dispatcher -> executeController(...) 6. C:\AppServ\www\petition\vendor\mako\framework\src\mako\http\routing\Dispatcher.php : 227 mako\http\routing\Dispatcher -> executeAction() 5. C:\AppServ\www\petition\vendor\mako\framework\src\mako\onion\Onion.php : 113 mako\http\routing\Dispatcher -> mako\http\routing\{closure}(...) 4. C:\AppServ\www\petition\vendor\mako\framework\src\mako\onion\Onion.php : 163 mako\onion\Onion -> mako\onion\{closure}(...) 3. C:\AppServ\www\petition\vendor\mako\framework\src\mako\http\routing\Dispatcher.php : 228 mako\onion\Onion -> peel(...) 2. C:\AppServ\www\petition\vendor\mako\framework\src\mako\application\web\Application.php : 55 mako\http\routing\Dispatcher -> dispatch() 1. C:\AppServ\www\petition\public\index.php : 13 mako\application\web\Application -> run() Superglobals $_SERVER ( toggle ) Included files 80 files have been included ( toggle )”
HI, did you set your mysql credentials?
Yes. Now it works but never got it working on localhost. QUESTION: Where can comments be deactivated optionally?
There is no option for this
I have placed all files in my hosting web server and created new database imported sql file also
Now i’m not able to login it says page not found when i go petition.bahria-rates.com/login for logging to backend
Please help
Hi
You need to set your subdomain path to /public and are you using PHP 7?
how i can set my subdomain to public i already have site running on my main domain it won’t effect on my that website if i put it public ?
No, wait, you don’t have to set anything to “public”.... you need to set your document root path to the folder /public, thats where you created your subdomain, this should affect only your subdomain
how to set document root path i don’t know
I have to put my subdomain directory inside public_html folder?
Where you have created the subdomain
i have directory called petition.mydomain.com inside that directory i have uploaded script files
Note: petition.mydomain.com directory is not inside public_html which is out of it. public_html contain my main site which is on wordpress
My current php version is 5.6 if i change it to 7.0 then i think it effect on my wordpress site right ??
should i keep the portno same as mention inside config.php and also hostname or no ?
You should be able to change settings for your subdomain only.
Where you have created your subdomain, there should be an input for your document root, so the Document root should point to “petition.mydomain.com/public” as main root
I should be able to change settings where i don’t see anything like this and what are you saying im not getting you, Please guide me that where I have to go for changing things?
How should i guide you when i don’t know which Hosting Tool you are using 
its shared hosting from reselllerclub
How i can assign public folder of script as main ?
this won’t effect my main site?
As per answer says
In WHM there is “Restrict document roots ” setting. If you have enable that option then you can able to create addon domains and subdomains outside of a cPanel user’s primary domain’s WHM >> Home >> Server Configuration >> Tweak Settings
but i don’t see Tweak Settings in my server
I don’t know cPanel and the host provider, to be 100% sure you should ask them
When I got to my domain http://petition.bahria-rates.com/public/
I see this error ( Warning: include(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home1/bahriarates/petition.bahria-rates.com/vendor/mako/framework/src/mako/application/Application.php on line 124
Parse error: syntax error, unexpected ’:’, expecting ’;’ or ‘{’ in /home1/bahriarates/petition.bahria-rates.com/vendor/mako/framework/src/mako/application/Application.php on line 124 )
I don’t know cPanel and the host provider, to be 100% sure you should ask them Ok then tell me how i can run your script in my sub.domain.com
To run it, you need PHP 7 and point your document root of your subdomain to /public….
Ok
Can i rate your supporting behavior ? I want to give feedback about you
You can do whatever you want, but don’t forget do ask your hosting provider for this settings
i will get back to you
I changed php version to 7.2 then i got this error Error Aw, snap! An error has occurred while processing your request.
I need to change hostname and port no# or I should keep that as mentioned already
No, can you try PHP 7.1? im using 7.1 and it works, not sure if 7.2 give some errors :/
I changed domain root to public but now getting this error
( Warning: include(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home1/bahriarates/petition.bahria-rates.com/vendor/mako/framework/src/mako/application/Application.php on line 124
Parse error: syntax error, unexpected ’:’, expecting ’;’ or ‘{’ in /home1/bahriarates/petition.bahria-rates.com/vendor/mako/framework/src/mako/application/Application.php on line 124 )
Ok changed from 7.2 to 7.1 but now getting this error
Error Aw, snap! An error has occurred while processing your request.
Are you there?
can you change “app/config/application.php” at the bottom of the file ‘display_errors’ => false to ‘display_errors’ => true ?
Check now getting this ( SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected [ SELECT * FROM `settings` WHERE `id` = 1 LIMIT 1 ] )
Did you set your correct database name in the file?
While importing tables I got this error
( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
CREATE TABLE `groups_users` (
`group_id` int(11) unsigned NOT NULL,
`user_id` int(11) unsigned NOT NULL,
UNIQUE KEY `group_user` (`group_id`,`user_id`),
KEY `group_id` (`group_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `groups` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
CONSTRAINT `users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
1215 – Cannot add foreign key constraint
)
But did you write your database name in the config file?
Yes I set the correct database name two tables are being import not rest
I can see groups table and entries table nothing else
i can share snapshot that i wrote name in my config file
no its ok
delete this database and import new from begin
ok wait
This is what i got after creating new database and importing database
(
SQL query:
CREATE TABLE `groups_users` ( `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, UNIQUE KEY `group_user` (`group_id`,`user_id`), KEY `group_id` (`group_id`), KEY `user_id` (`user_id`), CONSTRAINT `groups` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
MySQL said: #1215 – Cannot add foreign key constraint )
Are you there?
yes, not sure what the error could be :/
Its possible to send me Login Data for this Database via PM?
How i can pm you tell me
Can I add custom field in this script or i can replace existing field to my choice filed ? Using codeigniter this script is written i think ?
???
You can go to my profile, and send a message/email on the right side just click here on my name
i installed script and get Fatal error: Uncaught Error: Call to undefined function mako\application\mb_language() in /home/againstexecution/public_html/vendor/mako/framework/src/mako/application/Application.php:259 Stack trace: #0 /home/againstexecution/public_html/vendor/mako/framework/src/mako/application/Application.php(461): mako\application\Application->configure() #1 /home/againstexecution/public_html/vendor/mako/framework/src/mako/application/Application.php(85): mako\application\Application->boot() #2 /home/againstexecution/public_html/vendor/mako/framework/src/mako/application/Application.php(101): mako\application\Application->__construct(’/home/againstex…’) #3 /home/againstexecution/public_html/public/index.php(13): mako\application\Application::start(’/home/againstex…’) #4 {main} thrown in /home/againstexecution/public_html/vendor/mako/framework/src/mako/application/Application.php on line 259
how this can be solved.. it didn’t even work .. its php 7
Hey, it looks like your server hasn’t installed or loaded mbstring. Try to ask your hosting provider