Problem in installing ojs-2.4.6

i have installed ojs-2.4.6 on ubuntu. I have given the url ‘localhost/ojs-2.4.6/index.php’ & ojs installation screen appears. Under site management, I had created 2 journals.

But when I am registering under a particular journal as an author, the web page is redirecting to blank screen.
I don’t know where the problem is. plz help

Follow the instructions in this FAQ, and let us know what the particular error message is from your logs:

this error is coming, I checked in var/log/error.log

[Tue Nov 15 21:27:49 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: USER ERROR: Smarty error: unable to write to $compile_dir ‘/var/www/ojs246test/cache/t_compile’. Be sure $compile_dir is writable by the web server user.\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1093\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:49 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(/var/www/ojs246test/cache/t_compile/%%30^309^309A5EF8%%site.tpl.php): failed to open stream: No such file or directory\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:49 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(): Failed opening ‘/var/www/ojs246test/cache/t_compile/%%30^309^309A5EF8%%site.tpl.php’ for inclusion (include_path=’.:/var/www/ojs246test/classes:/var/www/ojs246test/pages:/var/www/ojs246test/lib/pkp:/var/www/ojs246test/lib/pkp/classes:/var/www/ojs246test/lib/pkp/pages:/var/www/ojs246test/lib/pkp/lib/adodb:/var/www/ojs246test/lib/pkp/lib/phputf8:/var/www/ojs246test/lib/pkp/lib/pqp/classes:/var/www/ojs246test/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear’)\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:55 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: USER ERROR: Smarty error: unable to write to $compile_dir ‘/var/www/ojs246test/cache/t_compile’. Be sure $compile_dir is writable by the web server user.\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1093\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:55 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(/var/www/ojs246test/cache/t_compile/%%30^309^309A5EF8%%site.tpl.php): failed to open stream: No such file or directory\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:55 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(): Failed opening ‘/var/www/ojs246test/cache/t_compile/%%30^309^309A5EF8%%site.tpl.php’ for inclusion (include_path=’.:/var/www/ojs246test/classes:/var/www/ojs246test/pages:/var/www/ojs246test/lib/pkp:/var/www/ojs246test/lib/pkp/classes:/var/www/ojs246test/lib/pkp/pages:/var/www/ojs246test/lib/pkp/lib/adodb:/var/www/ojs246test/lib/pkp/lib/phputf8:/var/www/ojs246test/lib/pkp/lib/pqp/classes:/var/www/ojs246test/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear’)\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:56 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: USER ERROR: Smarty error: unable to write to $compile_dir ‘/var/www/ojs246test/cache/t_compile’. Be sure $compile_dir is writable by the web server user.\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1093\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:56 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(/var/www/ojs246test/cache/t_compile/%%30^309^309A5EF8%%site.tpl.php): failed to open stream: No such file or directory\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

[Tue Nov 15 21:27:56 2016] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(): Failed opening ‘/var/www/ojs246test/cache/t_compile/%%30^309^309A5EF8%%site.tpl.php’ for inclusion (include_path=’.:/var/www/ojs246test/classes:/var/www/ojs246test/pages:/var/www/ojs246test/lib/pkp:/var/www/ojs246test/lib/pkp/classes:/var/www/ojs246test/lib/pkp/pages:/var/www/ojs246test/lib/pkp/lib/adodb:/var/www/ojs246test/lib/pkp/lib/phputf8:/var/www/ojs246test/lib/pkp/lib/pqp/classes:/var/www/ojs246test/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear’)\n In file: /var/www/ojs246test/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.28\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.73-0ubuntu0.10.04.1

Hi @sanjh,

The file permissions on your cache directory (and its subdirectories and their contents) aren’t set correctly. See docs/README and the OJS FAQ for more information on file permissions.

Regards,
Alec Smecher
Public Knowledge Project Team

I have seen docs/README but the problem is not solved yet. How to set file permission on your cache directory & its subdirectory & its contents?

plz explain in detail

See this thread:

what will be algorithm for hit counter? plz help

Is this question still related to the initial question of the blank pages after install? If so, can you clarify? I’m not seeing the connection. If it is unrelated to the initial question, please post it in a new thread with a bit more context about what your asking.

It is not related to initial question. I need algorithm of hit counter in ojs because I want to apply hit counter in open journal system. On each visit of a person on website, the number of hits is incremented by one. I need algorithm or pseudocode of that.plz help

Yes, please open that question as a new topic in this forum. That will help others with the same question find both the question and the answer.