Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] ScreenCust...
 
Notifications
Clear all

[SOLVED] ScreenCustomization - Impossible to make change on screen - Error Bad connection

14 Posts
2 Users
0 Reactions
11.6 K Views
(@actajpi)
Posts: 11
Active Member
Topic starter
 
[#4957]

Hello,

I use the version 6.5.5 of Projeqtor
I have just installed the "screenCustomzation" V5.1 plug in. And the installation was done succesfully.
But when i try to change anything in a screen, and want to save my modifications an error message appear :

Technical issue occured possibly due to bad network connection.
Please try again.
If issue persists, please contact your administrator.
Contact your administrator.
(detailed error is reported in log file)

The is no error in the log file.
And i havn't any problem when i use the application to make change on objects like Project, Activites, etc...

Can you help me ?
Thank you


 
Posted : 09 Feb 2018 16H09
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

Check access rights.
PHP user must have write rights in projeqtor/model/custom folder.


 
Posted : 12 Feb 2018 10H17
(@actajpi)
Posts: 11
Active Member
Topic starter
 

Hello,

I have checked. PHP user has read and write rights on all projeqtor directories.

But, i have made more tests, and actualy, only one thing not works. I can change existing field's general properties, i can add new fields, but i can't modify fields attributes for types, states and profiles.

Have you an idea ?

Thank you.


 
Posted : 12 Feb 2018 10H34
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

1) clean browser cache
2) test and check for errors in browser console (F12) and report any here
3) when request generating error is identified, go to "network" tab in browser dev tool (F12) and post here response for erroneous request


 
Posted : 12 Feb 2018 10H40
(@actajpi)
Posts: 11
Active Member
Topic starter
 

In browser console, there is an error :

"Unable to load ../plugin/screenCustomization/screenCustomizationSaveExtraHiddenType.php?destinationWidth=788.16&destinationHeight=0&isIE=11 status: 500"

Note : I have checked the file screenCustomizationSaveExtraHiddenType.php. It is present, in the right place, with all read/write rights

And in the network tab, there is no more informations. Server only reply with a 500 HTTP error

HTTP/1.1 500 Internal Server Error


 
Posted : 12 Feb 2018 11H07
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

For error 500, possibly you can find an error in Apache Error log file.
Please report error.


 
Posted : 13 Feb 2018 1H42
(@actajpi)
Posts: 11
Active Member
Topic starter
 

Hello,

I use Microsoft IIS to host the application.
A have enable logging, but there is no more informations than HTTP Code 500.

I have tried to call directly the script screenCustomization/screenCustomizationSaveExtraHiddenType.php, and i have an 500 error too.
The error seems to be linked to the line 148 : $extraList=(new ExtraReadonlyField())->getSqlElementsFromCriteria($crit);

There is a log line just before : traceLog("dupplicate entry in extrareadonlyfield for scope=$hideScope, class=$objectClass, idType=$idType, col=$col");
I have checked the table extrareadonlyfield, it is empty.

Have you another idea ?

Thanks


 
Posted : 26 Feb 2018 15H25
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

You should have somme errors on IIS Log file.
Most possibly it is access right to folders that may be in cause.

To test, try and give wide write access (to anyone) to whole projeqtor web folder structure.


 
Posted : 26 Feb 2018 15H49
(@actajpi)
Posts: 11
Active Member
Topic starter
 

I have found this error in the php error log :

[26-Feb-2018 13:58:20] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in E:ApplicationsprojeqtorpluginscreenCustomizationscreenCustomizationSaveExtraHiddenType.php on line 115

There is already all rights for everyone on the application directory.

Thank you


 
Posted : 26 Feb 2018 16H00
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

What is your version of PHP ?
What is your version of ScreenCustomization plugin ?


 
Posted : 26 Feb 2018 16H17
(@actajpi)
Posts: 11
Active Member
Topic starter
 

PHP v 5.3.1
ScreenCustomization v 5.1
Projeqtor 6.5.5


 
Posted : 26 Feb 2018 16H22
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

I'm afraid the plugin is not compatible with PHP 5.3

Do you have opportunity to mligrate to PHP 5.6 or 7.0 ?
(PHP 5.3 is more than 8 years old, and may contain many security leaks)

We will try and fix this issue on Screen Customization, without being able to be sure it will work because it becomes almost impossible to install old PH 5.3 (I tried to, but php 5.3 is not compatible with Apache 2.4, and reverting may corrupt my dev env.)

NB : it is likely that ProjeQtOr V7.0 will require at least PHP 5.6


 
Posted : 26 Feb 2018 17H10
(@actajpi)
Posts: 11
Active Member
Topic starter
 

No, we can't upgrade the PHP version on this server.

Note : if you replace line 115 and 148 in the file by :

$newExtraHiddenField = new ExtraHiddenField();
$extraList=$newExtraHiddenField->getSqlElementsFromCriteria($crit);

Instead of
$extraList=(new ExtraHiddenField())->getSqlElementsFromCriteria($crit);

It will work on PHP 5.3.x


 
Posted : 26 Feb 2018 18H48
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

Hi,

It is the fix we have also found.
Glad to know it works on PHP 5.3 (could not test it on this version of PHP)
Next version of plugin will be deployed with this fix.


 
Posted : 26 Feb 2018 18H53
Share:

Scroll to Top