Page 1 of 1

PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Thu Jul 19, 2018 11:49 pm
by jcm4101
Hi..
Installing ProcessMaker 3.2 on a Ubuntu server..
Details are...
Ubuntu 17.10 (artful)
PHP 5.6
Mysql Ver 14.14 Distrib 5.7.21
Apache/2.4.27

When launching the site for the first time to perform the PM configuration/installation I get a 500 error and the error log message PHP Fatal error: Class 'G' not found in ...sysGeneric.php on line 286

I've Googled around, but no help..

I've tried on both PHP 7.0 and 7.1 and get the same error..

Any help would be appreciated.
I'm a ProcessMaker n000b, but experienced linux admin..

Cheers in anticipation.

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 12:14 am
by amosbatto
First, uninstall PHP 7.X (or change /usr/bin/php so it is no longer a symbolic link to execute PHP 7.X).
Then, install PHP 5.6 as explained here.
Then, it should work. Make sure that your php.ini file is correctly configured as explained in the wiki so it doesn't display deprecated warnings.

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 12:17 am
by jcm4101
Thanx for the swift response, I'll give it a crack and let you know..

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 12:28 am
by jcm4101
OK, done as requested...
PHP 5.6 is the only version installed (Re-installed)
php.ini modded as per the installation.txt file directives.

Apache2 restarted

I still get the same error...
More ideas??

Thanks

D

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 12:54 am
by amosbatto
The INSTALL.txt file is about 5 years old (I keep telling the developers to delete it) and should not be used.

Unfortunately, the Ubuntu instructions on the wiki don't explain how to install PHP from an outside repo, but otherwise they should be correct for PM 3.2. See the section on the php.ini settings:
http://wiki.processmaker.com/3.0/Proces ... P_Settings

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 2:39 am
by jcm4101
Hi, thanks again for this...
Again, I've followed the instruction on the link provided regarding the php.ini settings, but I get the same error.

Following is a copy of my php.ini without the comments to make it shorter..

Any more help would be appreciated.
Code: Select all
[PHP]
engine = On
short_open_tag = On
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
disable_classes =
zend.enable_gc = On
expose_php = Off
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 24M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_tmp_dir = /tmp
upload_max_filesize = 24M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
date.timezone = Australia/Perth
[filter]
[iconv]
[intl]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 0
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatibility_mode = Off
mssql.secure_connection = Off
[Assertion]
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
[opcache]
[curl]
[openssl]

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 8:20 pm
by amosbatto
The php.ini file looks correct. It is very strange that it isn't loading gulliver/system/class.g.php.
Did you follow the instructions on the wiki for setting the file permissions and changing the owner of the files to www-data?

I don't think anyone here has tried installing on Ubuntu 17.10. Updating the Ubuntu documentation is on my "to do" list. I will give it a shot next week and let you know if there are any special tricks I find.

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Fri Jul 20, 2018 11:53 pm
by jcm4101
Thanx again amosbatto...
I'll re-check file permissions and ownership again and report back..

D

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Mon Dec 24, 2018 9:50 am
by annaxh
jcm4101 wrote: Thu Jul 19, 2018 11:49 pm Hi..
Installing ProcessMaker 3.2 on a Ubuntu server..
Details are...
Ubuntu 17.10 (artful)
PHP 5.6 Plex Kodi Lucky Patcher
Mysql Ver 14.14 Distrib 5.7.21
Apache/2.4.27

When launching the site for the first time to perform the PM configuration/installation I get a 500 error and the error log message PHP Fatal error: Class 'G' not found in ...sysGeneric.php on line 286

I've Googled around, but no help..

I've tried on both PHP 7.0 and 7.1 and get the same error..

Any help would be appreciated.
I'm a ProcessMaker n000b, but experienced linux admin..

Cheers in anticipation.
thanks for the solutions

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Mon Apr 20, 2020 10:12 pm
by ficopy
Hey Guys.

I'm experimenting the exact same problem in ubuntu 18.04.

Already replicated the steps for fixing it described above.

Did you find a fix for this afterall?

Thanks.

FG

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Sun Apr 11, 2021 10:50 pm
by zonemath
Experiencing the same issue on a Ubuntu 20.04 (PM 3.5.7)
Apache 2.4
PHP-FPM 7.3
Mysql 5.x
Has anyone found something to move forward with this issue? I can make myself available to some developers to work this out...
Thanks!

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Sun Apr 11, 2021 11:32 pm
by zonemath
Not sure what I did to fix it but :
-Verified the pmos.conf file and remove an entry related to sysGeneric.php
-Removed the FPM configuration.

Re: PHP Fatal error: Class 'G' not found in sysGeneric.php When launching for the first time

Posted: Sat Feb 25, 2023 4:01 am
by alireza
hello
in my case: "Fatal error: Uncaught Error: Class 'G' not found public_html/processmaker/workflow/public_html/sysGeneric.php:276 " error.
please help me friends