Frequently Encountered Problems

From RadPHP XE2 Documentation
Jump to: navigation, search

If you are experiencing any issue with RadPHP, first read this list of Frequently Encountered Problems, which include most common issues and solutions or workarounds.

Contents

General

Could not determine My Documents path

You must have a My Documents folder in your user folder.

In Windows 7, creating a folder with that name might not be enough. Go to Start, right-click Documents, go to Properties and, in the window that will pop up, click Restore Defaults at the bottom, and then click OK.

Help Resources

I cannot get the e-commerce sample to work

There is a readme.txt file along with the sample that explains how to install the components the application needs in order to work.

Designer

Sometimes components do not render right

This is a known error.

It sometimes happens with the first component rendered, sometimes with all the components, but it only happens when a component is rendered for the first time. “First time” as in “first time you open a file from the point of view of RadPHP”. So, if you rename a project, all the files in it will suffer from this issue, since RadPHP reads them as new files.

To workaround this issue, you only need to change a property in the components with visual consequences. For example, changing the size of a component will result in it being rendered again, and this time the component will render right.

I get JavaScript errors when working in the Designer, I cannot get any control to be rendered

This is a generic security issue with the web browser, that prevents HTML loading JavaScript from a different drive. There are workarounds, but you can verify if this is your problem by running it all from the same drive.

I set all the properties in the Designer for Tables, DataSources and Databases, but I cannot see the results in the DBGrid

Data access components are not connected in design-time, thus improving the overall RadPHP performance. You can still watch them in action if you run them in the browser: Run > Run.

Mobile

Wizard for PhoneGap is not available under Tools menu

This might happen if you switch RadPHP from English to another language, and back to English; or sometimes when working with the toolbars.

To solve the issue:

  1. Close RadPHP.
  2. Delete toolbars.txt, you will find it in shared data directory.
  3. Open RadPHP.

Testing

Sometimes I get an Apache AV, I am using ajaxCall to call PHP functions

The Apache AV is caused by the URL “restore_session=1” parameter, which makes AJAX calls destroy the session, and PHP and Apache do not behave well with such an amount of destroys. It also makes the process slow.

To fix it:

  1. Remove the “restore_session” from your URL.
  2. Press Enter to reload the URL without the parameter.

I try to run a project and nothing happens

Make sure you have a default browser setup. If not, setup one from Tools > Options.

Deployment

Blank screen and no errors

If your web application runs fine when you run it from RadPHP, but it does not work when you deploy it to your server and you get a blank screen instead, you should enable PHP error reporting to help find out what the problem is. Add the folowing lines at the beginning of your script:

ini_set("display_errors",1);
error_reporting(E_ALL);

The Input Filter PHP extension is not setup on this PHP installation, so the contents returned by Input is not filtered

That means you did not setup Input Filter PHP Extension in your system.

If you do not need to get input filter, you can edit your system.inc.php file, search for “throw new Exception” (around line 226), and safely remove that line.

Alternatively, you can setup the Input Filter extension.

If you are running PHP 5.2.x, then the PHP Input Filter is already built in, but the function filter_data was renamed to filter_var. An updated version of the class in system.inc.php that supports both PHP 5.1.x and PHP 5.2.x will be shipped soon.

  • If you have followed these instructions and are still getting the same error, please post about it in this forums topic.

Strict Standards: Declaration of [class]::[method] should be compatible with that of [another class]::[same method] in [filepath] on line [number]

You might get this message while working with a high PHP version with certain error flags enabled. This is because RadPHP is making use of certain PHP features that your PHP version does not allow by default. To workaround the issue, place this line of code at the beginning of the problematic file:

error_reporting( E_ALL ^ E_NOTICE ^ E_STRICT );
  • If the workaround is not working for you, please explain your circumstances in this forums topic.

qx is not defined

This can be caused by several things.

First, try to copy the whole RPCL to your server, as the deployment wizard may not be aware of all the code your application needs to run.

It can also be due to the rpcl folder not being a subfolder of your application. The RPCL generates an rpcl-bin alias you have to setup on your webserver so components are able to find resources. Check out your webserver documentation and add an alias called rpcl-bin pointing to the rpcl folder.

Also, we added a fix to the rpcl-bin generation on rpcl.inc.php, checkout this link: http://rpcl.svn.sourceforge.net/viewvc/rpcl/trunk/vcl/vcl.inc.php?r1=2&r2=5

When I deploy my application I get: “Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) in /path/to/website/vlc/dbgrids.inc.php on line 621

You need to increase the memory available for PHP. Edit your php.ini file, the one used by the PHP engine you are using, and set setting memory_limit to a higher value (it is set to 8M by default, you can try with 32M). For additional information on php.ini directives, check php.net/manual/en/ini.php.

Personal tools