Tag Archives: php

Server errors, Bad Gateway

Many servers exists with many different configurations, so such issues may happen.

1. try disable mod security in cpanel or ask hosting provider to disable

2. change PHP to 7.2 or 7.3, try this php config: http://iwinter.com.hr/support/?p=17307

3. nginx issues guides: http://iwinter.com.hr/support/?p=6975

4. If issue persists also provide cpanel login and admin login via support ticket: https://geniuscript.com/support/

5.

Regarding hosting providers, we using in our demos cpanel version from:

a2_hosting_logo

Suggested PHP config

Regarding hosting providers, all our codes are tested on:

a2_hosting_logo

99.99% our clients use cpanel, this is best and most easier way to go

Everything else like custom servers just causing unpredictable unnecessary trouble for us and our clients, is very hard to support such clients.

Example php modules from our demo hosting:

bcmath,dom,fileinfo,gd,imap,tidy,xmlreader,xmlrpc,xmlwriter,xsl,zip,intl,json,mbstring,mcrypt,mysql,mysqli,opcache,pdo,pdo_mysql,phar,posix,soap,sockets

from php.ini this parameters are important:

* upload_max_filesize = 128M
* post_max_size = 128M
* max_execution_time = 5000
* max_input_time = 2000
* memory_limit = 512M
* max_input_nesting_level = 128
* max_input_vars = 10000
* output_buffering = 4096

How to change pseudo variables to php variables in template files?

Pseudo variables in standard codeigniter template variables: http://www.codeigniter.com/user_guide/libraries/parser.html

This is instructions:

{last_estates}
{/last_estates}

Should be changed to this:

<?php foreach($last_estates as $item): ?>
<?php endforeach(); ?>

And variables inside like:

{thumbnail_url}

Should be changed to:

<?php echo $item['thumbnail_url']; ?>

This for example:

{has_option_36}
{/has_option_36}

to:

<?php if(empty($item['option_36'])): ?>
<?php endif; ?>

To be hanest, I will change all pseudo variables in future to real PHP variables because cause only problems when somebody like you want to customize something, format something differently etc…