Jump to content

include or require_once is showing error while using jumi.


borhan_safa

Recommended Posts

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.

Link to comment
Share on other sites

Your server's php.ini is configured to not allow you to include a URL.  If the files you want to include are on the same server you should include them using a filesystem path rather than a URL.  If you are trying to include an external file you need to either re-configure the server to allow it, or more likely stop using include() and use something else like file_get_contents().

Link to comment
Share on other sites

Thanks for the reply. I have changed the function require_once to file_get_contents but its still showing an error something like:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13

 

Could you please give an example on how to use a filesystem path rather than a url....

 

Thanks in advanced.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.