Quercus:php on glassfish server - quercus

I am trying to run php on glassfish server using Quercus and i get the following error on top of my page
NetBeansProjects/WebApplication1/build/web/q2a/qa-include/qa-index.php:512: Notice: $count is an undefined variable NetBeansProjects/WebApplication1/build/web/q2a/qa-include/qa-index.php:556: Notice: $themeclass is an undefined variable [qa_load_theme_class].
Did anyone have the same problem before?
Thanks

Install newer version of Quercus 4.0.7 and your problem will be solved!

Related

Postgresql 9.6 error with php7

I've set DB-postgresql 9.6 and php7 (in open server). In general error:
Error
As i understand problem with version php. because postgresql works with php 5.5
How i can correct this? In advance thank you.

Call to undefined function sqlsrv_connect() using WAMP and php 7.1.6

First things first, I read and tried stuff I found online even from this website, but can't get it to work.
I have an SQL SERVER 2014 running on Windows Server 2012, there I have a WAMP 64 bits running Apache on PHP 7.1.6 and need to connect to the Database, apparently the extension is not loaded because I'm getting the undefined function error.
$conn = sqlsrv_connect( $APIDBSERVER, $connection);
What I've done so far:
Installed Microsoft® ODBC Driver 11 for SQL Server
Downloaded PHP SQL Driver 4.0 and moved php_sqlsrv_7_nts_x64.dll to /ext
Added them to php.ini:
extension=php_pdo_sqlsrv_7_nts_x64.dll
extension=php_sqlsrv_7_nts_x64.dll
Apparently the PDO also needs php_pdo.dll which WAMP doesn't have and I haven't found where to download it from, so I'm using the standard non-PDO approach
Recently even tried enabling odbc extensions which were disabled:
extension=php_odbc.dll
extension=php_pdo_odbc.dll
I access the php.ini through the WAMP menu so I know I'm editing the right one, restarted the server several times trying different things but I've run out of ideas.
Can you please help me?
EDIT:
PHP error log indicates the modules couldn't be found, but if I check that path they're right there, copy&pasted filenames into php.ini.
PHP Warning: PHP Startup: Unable to load dynamic library
'c:/wamp64/bin/php/php7.1.6/ext/php_pdo_sqlsrv_7_nts_x64.dll' - The
specified module could not be found. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'c:/wamp64/bin/php/php7.1.6/ext/php_sqlsrv_7_nts_x64.dll' - The
specified module could not be found. in Unknown on line 0
EDIT 2:
Tried downgrading to 7.0.20 and get the same error, so the php.ini is fine, it just won't load them for a reason, will try to download ODBC 13.1 maybe?
Each PHP version might require a different version of the Microsoft PHP Drivers for SQL Server.
The link below shows compatibility between PHP and MS SQLSRV versions:
https://learn.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-ver15.
Because of the way WAMPServer is configures, NTS extensions do not run.
So change your process just a little and use the Thread safe dll's instead.

Protractor / Selenium Webdriver : Runtime.executionContextCreated has invalid 'context'

I use protractor to test Angular2 app. It was working fine and I think I didn't change nothing in conf but now it ends up with this:
...
super(opt_error);
^
SessionNotCreatedError: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"4012.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=54.0.2840.71)
(Driver info: chromedriver=2.21.371459
...
I work on a Mac OSX 10.11.4, Chrome 54.0.2840.71.
Any suggestion? Thanks
--- EDIT 26/10
Since it depends on each one settings it looks like theres no absolute answer to this. The main idea is to update protractor/ chromedriver / webdriver-manager accordingly.
Saying that i now face another problem : every basic test i do, including ( for instance ) a browser.get() is failing with :
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL
I don't know if it's an isolated case and if it fits here (I use jasmine2 as framework) so I start another question here
I installed ChromeDriver v2.24 and stored it in: /usr/local/Cellar/chromedriver/2.24/bin and it fixed the error for me.
As mentioned by others, looks like it is a problem with the chromedriver installed in the system with the new version of chrome. For mac, I updated the chromedriver using 'chromedriver-update' and this fixed it.
I had a similar problem and solver it by forcing chromedriver 2.24 to install by manually removing webdriver-manager
delete the folder rm -rf /usr/local/lib/node_modules/webdriver-manager/
reinstall webdriver
npm install -g webdriver-manager
I updated the selenium-standalone to the latest version 5.8.0 (from 5.1.0). It will install the newer version of chrome webdriver(2.25), instead of install chrome driver2.21. This solved the issue on my end.(no connection, session exception)
If even after updating the webdriver to 2.25, the error is still occurring and if you are using the terminal app this should help :
I managed to fix the issue by unchecking “Set locale environment variables on startup” checkbox in advanced terminal app settings.
Or try to launch your test with this prefix :
LC_NUMERIC=”en_US.UTF-8″ npm test

DotNetNuke upgrade from 6.02.09 to 7.40.00

I am trying to upgrade from DontNetNuke from 6.02.09 to 7.40.00
The upgrade process is completed successfully. But when I try to access the website I get the following error " File Error Parameter count does not match Parameter Value count".
I Installed a local version of the DNN 7.4 and then changes the webconfig file and now it works

Cake bake undefined function mysql_query on easyphp

when i try to use the shell to build models
cake bake
M
i get this error:
Fatal error: Call to undefined function mysql_query() in C:\Program Files\EasyPH
P-5.3.2\www\cake\cake\libs\model\datasources\dbo\dbo_mysql.php on line 588
on
phpinfo();
mysql extension is enabled, i'm using mysql driver
running
if(!function_exists('mysql_query')) echo 'error'; else echo 'all fine';
on a separate file prints all fine but on
dbo_mysql.php just before line 588
prints error
i believe the database configuration is correct as on http://127.0.0.1/cake/
it says
Your database configuration file is present.
and
Cake is able to connect to the database.
i'm using the latest stable version of cakephp and easyphp on windows xp pro sp3, paths are setted correctly
any idea?
thank you
creating a "php.ini" file next to php.exe with the following content solved my problem.
EasyPHP-x.x.x\php\php.ini
[PHP]
extension_dir = "ext"
extension=php_mysql.dll
ok it was easy, easyphp uses a different php.ini than the defoult
creating one solved the problem

Resources