Code

Discussion on PHP Petition Script

Discussion on PHP Petition Script

Cart 86 sales
altsniffer

altsniffer supports this item

Supported

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

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

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

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.

hey, So it’s a bug or not? :D

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.

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

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.

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

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

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey