Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
87 views
in Q2A Core by

 https://github.com/mrzeeshanplus/q2apro-caching

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

2021-06-06 09:54:01.472410 [NOTICE] [10323] [66.249.72.148:56666-498#domain.com:lsapi] [STDERR] PHP Fatal error:  Uncaught Error: Undefined constant "IPC_CREAT" in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php:139

Stack trace:

#0 /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php(115): qa_caching_main->write_cache()

#1 /home/domain.com/public_html/qa-include/qa-base.php(1935): qa_caching_main->shutdown()

#2 /home/domain.com/public_html/qa-include/qa-index.php(193): qa_report_process_stage()

#3 /home/domain.com/public_html/index.php(27): require('...')

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

2021-06-06 09:54:02.642103 [NOTICE] [10323] [66.249.72.148:56666-499#domain.com:lsapi] [STDERR] PHP Fatal error:  Uncaught Error: Undefined constant "IPC_CREAT" in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php:139

Stack trace:

#0 /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php(115): qa_caching_main->write_cache()

#1 /home/domain.com/public_html/qa-include/qa-base.php(1935): qa_caching_main->shutdown()

#2 /home/domain.com/public_html/qa-include/qa-index.php(193): qa_report_process_stage()

#3 /home/domain.com/public_html/index.php(27): require('...')

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

2021-06-06 09:54:03.065584 [NOTICE] [10323] [66.249.72.148:56666-500#domain.com:lsapi] [STDERR] PHP Fatal error:  Uncaught Error: Undefined constant "IPC_CREAT" in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php:139

Stack trace:

#0 /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php(115): qa_caching_main->write_cache()

#1 /home/domain.com/public_html/qa-include/qa-base.php(1935): qa_caching_main->shutdown()

#2 /home/domain.com/public_html/qa-include/qa-index.php(193): qa_report_process_stage()

#3 /home/domain.com/public_html/index.php(27): require('...')

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

2021-06-06 09:54:03.766741 [NOTICE] [10323] [66.249.72.148:56666-501#domain.com:lsapi] [STDERR] PHP Fatal error:  Uncaught Error: Undefined constant "IPC_CREAT" in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php:139

Stack trace:

#0 /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php(115): qa_caching_main->write_cache()

#1 /home/domain.com/public_html/qa-include/qa-base.php(1935): qa_caching_main->shutdown()

#2 /home/domain.com/public_html/qa-include/qa-index.php(193): qa_report_process_stage()

#3 /home/domain.com/public_html/index.php(27): require('...')

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

2021-06-06 09:54:04.109123 [NOTICE] [10323] [157.55.39.80:40832:HTTP2-1#domain.com] [STDERR] PHP Fatal error:  Uncaught Error: Undefined constant "IPC_CREAT" in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php:139

Stack trace:

#0 /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php(115): qa_caching_main->write_cache()

#1 /home/domain.com/public_html/qa-include/qa-base.php(1935): qa_caching_main->shutdown()

#2 /home/domain.com/public_html/qa-include/qa-index.php(193): qa_report_process_stage()

#3 /home/domain.com/public_html/index.php(27): require('...')

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

2021-06-06 09:54:04.908460 [NOTICE] [10323] [66.249.72.148:56666-502#domain.com:lsapi] [STDERR] PHP Fatal error:  Uncaught Error: Undefined constant "IPC_CREAT" in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php:139

Stack trace:

#0 /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php(115): qa_caching_main->write_cache()

#1 /home/domain.com/public_html/qa-include/qa-base.php(1935): qa_caching_main->shutdown()

#2 /home/domain.com/public_html/qa-include/qa-index.php(193): qa_report_process_stage()

#3 /home/domain.com/public_html/index.php(27): require('...')

#4 {main}

  thrown in /home/domain.com/public_html/qa-plugin/q2apro-caching/qa-caching-main.php on line 139

Any solution ? 

1 Answer

+1 vote
by

The constant mentioned in the error (IPC_CREAT) is used in a call of the function sem_get(), which appears to be a wrapper around the system call semget(). PHP itself only defines the constant for Windows operating systems AFAICS, so unless you're running Windows it probably should be provided by a system library.

Since you said that you're seeing the error after switching systems, I'd suspect that something is amiss with that system's setup. Check the differences between the two systems (different PHP/library versions, maybe different init system?).

by
Yeah I am thinking to take the backup of database and reinstall everything with fresh q2a installation.
...