[solved Having a problem

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[solved Having a problem

Post by krafyt »

Hi folks,

I have a problem with my style which is self-made from Prosilver. If a mod needs the file "memberlist_search.html" I get the following error:

Code: Select all

prosilvermodmemberlist_search.html) [function.fopen]: failed to open stream: No such file or directory
Of course there's no file called that but the folder with my style is called "prosilvermod".

Tried to create a file with that odd name with no luck. Checked "memberlist_search.html" lots of times for coding mistakes with no luck.

Checked "styleswitcher.js", "forum_fn.js" & "editor.js" up against the original files for coding mistakes but no mistakes found.

Checked if the server-settings should be wrong but I don't see any errors. "allow_url_fopen" is set as "on" in "php.ini".

Of course I have emptied the cache.

A really strange thing is that there are no errors when running on a local server (XAMPP) with exactly the same files.

Can anyone help me? I'm pretty lost in this one. :?
Last edited by krafyt on 28 Feb 2012, 10:15, edited 1 time in total.

Having a problem

Post by Stoker »

You have a spelling error in your template somewhere. My guess.
Search all your template files for this: prosilvermodmemberlist_search.html

Having a problem

Post by krafyt »

Thanks a lot. The mistake was in the overall_header.html file. Around line 27 it said

Code: Select all

phpBB style name: prosilver
It should be

Code: Select all

phpBB style name: prosilvermod
The mods use the file to determine which style is used.

:)

Btw - are you closing phpbb3bbcodes? :shock:

EDIT: Just applied the change "live" and it didn't help. Still trying to open a file that for good reasons isn't there. Everything still works local. Still mystified.

Having a problem

Post by Stoker »

I bet you dont get the error on all pages?

As I said before you have an error in one of your template files
Somewhere you have this code:

Code: Select all

<!-- INCLUDE prosilvermodmemberlist_search.html -->
and it should be this instead:

Code: Select all

<!-- INCLUDE memberlist_search.html -->
Thats whats causing the error.

Having a problem

Post by krafyt »

I bet you dont get the error on all pages?
No I don't. Only when trying to install MODS. If a MOD requires to open

Code: Select all

memberlist_search.html
I get the error. I cannot install the official "Support Tool Kit" from phpBB because of this and also any MOD that requires the file

Code: Select all

memberlist_search.html
There is no line anywhere in the whole public_html folder that has the line

Code: Select all

prosilvermodmemberlist_search.html
.

The error-log in cPanel says that it's trying to open a file called "function.fopen" inside the "Support Tool Kit" folder which is not there.

It's so strange that everything works on a local server. It seems as there could be something wrong with the server-settings at root level. The files are EXACTLY the same but the settings at the local root are not the same as in the live environment.

The next step will be to upload an empty file called "function.fopen" to the server.

Having a problem

Post by Stoker »

function.fopen is a function, not a file. Its an error message and you get that error message because of a missing file.
But you can create a copy of memberlist_search.html and call it prosilvermodmemberlist_search.html and upload it to the template directory.

Having a problem

Post by krafyt »

But you can create a copy of memberlist_search.html and call it prosilvermodmemberlist_search.html and upload it to the template directory.
Done that several times with no luck.

I will go through the whole style for coding mistakes next.

Thanks God for phpDesigner 8!

[solved Having a problem

Post by krafyt »

Uninstalled my default style and went back to the original Prosilver. Loaded the Support Tool Kit once in Prosilver. Afterwards uninstalled Prosilver and went back to my original style - problem solved.