Question

Hi I have created multiple php pages and the pages are calling other pages using require_once or include function. When I run the main script, it is showing the following error:

Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13

Warning: include( http://bphf2012.org/index.php?option=com_jumi&fileid=10 ) [function.include]: failed to open stream: no suitable wrapper could be found in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13

Warning: include() [function.include]: Failed opening 'http://bphf2012.org/index.php?option=com_jumi&fileid=10' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13

Could anyone please help me how to sort out the issue...

Thanks.


Alright the error has been fixed after changing the server configuration but I am facing another problem now. When I am running the script, it is showing a blank page. I think I have made some mistakes on my scripts. Could you please check my php scripts which you can find from the following link:

https://www.dropbox.com/sh/vof0p4heo4csdn9/dj2NfgcWuE

What I did is, I have copied the scripts and pasted on the jumi component with the same name. After that I have assigned link on the menu manager to run.

If you want to see how it is displaying please visit my website:

http://bphf2012.org/index.php?option=com_jumi&view=application&fileid=3&Itemid=103

Please help me...

Thanks.

Was it helpful?

Solution

Since you responded that the url is your site, I would guess that the include and requires are for your own site, it would appear that you are pointing to the files in a non-standard way.

By routing through a url, you would require Joomla to set up for every file. Normally, you would just point to the exact file:

include(JPATH_COMPONENT . '/views/view_name/tpl/default.php');

You can look here for the different path constants that Joomla makes available.

OTHER TIPS

Looks like you're trying to include a remote file which is located out on http://bphf2012.org. This is inherently a security risk, therefore not possible.

Using a relative path sorted this for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top