Jump to content
DevFuse Forums
Sign in to follow this  
Michael

Guest Message

Recommended Posts

Installed and I get this error..


( ! ) Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\WampServer\www\system\Patterns\Singleton.php on line 59
Call Stack
#	Time	Memory	Function	Location
1	0.0003	242064	{main}( )	..\index.php:0
2	0.1223	9521184	IPS\_Dispatcher->run( )	..\index.php:13
3	0.2936	16814992	IPS\Dispatcher\_Front->finish( )	..\Dispatcher.php:131
4	0.3165	18774216	IPS\Dispatcher\_Standard->finish( )	..\Front.php:394
5	0.3173	18774952	IPS\_Dispatcher->finish( )	..\Standard.php:95
6	0.3175	18778120	IPS\Theme\class_core_front_global->globalTemplate( )	..\Dispatcher.php:149
7	0.3840	23242464	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
8	0.3841	23243680	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
9	0.3846	23268440	IPS\IPS::exceptionHandler( )	..\Widget.php:747
10	0.3846	23270192	IPS\_Output->error( )	..\init.php:475
11	0.3972	23299128	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
12	0.4292	23315376	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
13	0.4293	23315944	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
14	0.4298	23349888	IPS\IPS::exceptionHandler( )	..\Widget.php:747
15	0.4298	23350144	IPS\_Output->error( )	..\init.php:475
16	0.4358	23352640	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
17	0.4649	23368872	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
18	0.4650	23369440	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
19	0.4657	23413024	IPS\IPS::exceptionHandler( )	..\Widget.php:747
20	0.4657	23413280	IPS\_Output->error( )	..\init.php:475
21	0.4704	23415048	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
22	0.5007	23431488	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
23	0.5008	23432056	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
24	0.5016	23485160	IPS\IPS::exceptionHandler( )	..\Widget.php:747
25	0.5016	23485416	IPS\_Output->error( )	..\init.php:475
26	0.5061	23618168	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
27	0.5386	23634608	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
28	0.5387	23635176	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
29	0.5396	23697800	IPS\IPS::exceptionHandler( )	..\Widget.php:747
30	0.5396	23698056	IPS\_Output->error( )	..\init.php:475
31	0.5441	23699824	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
32	0.5772	23716264	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
33	0.5773	23716832	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
34	0.5783	23789240	IPS\IPS::exceptionHandler( )	..\Widget.php:747
35	0.5783	23789496	IPS\_Output->error( )	..\init.php:475
36	0.5832	23791264	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
37	0.6183	23807720	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
38	0.6184	23808288	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
39	0.6195	23890216	IPS\IPS::exceptionHandler( )	..\Widget.php:747
40	0.6195	23890472	IPS\_Output->error( )	..\init.php:475
41	0.6240	23892240	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
42	0.6608	23908680	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
43	0.6609	23909248	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
44	0.6622	24000696	IPS\IPS::exceptionHandler( )	..\Widget.php:747
45	0.6622	24000952	IPS\_Output->error( )	..\init.php:475
46	0.6669	24002720	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
47	0.7053	24019160	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
48	0.7054	24150712	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
49	0.7069	24251680	IPS\IPS::exceptionHandler( )	..\Widget.php:747
50	0.7069	24251936	IPS\_Output->error( )	..\init.php:475
51	0.7114	24253704	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
52	0.7492	24270144	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
53	0.7492	24270712	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
54	0.7510	24381184	IPS\IPS::exceptionHandler( )	..\Widget.php:747
55	0.7510	24381440	IPS\_Output->error( )	..\init.php:475
56	0.7557	24383208	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
57	0.7953	24399656	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
58	0.7954	24400224	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
59	0.7970	24520216	IPS\IPS::exceptionHandler( )	..\Widget.php:747
60	0.7970	24520472	IPS\_Output->error( )	..\init.php:475
61	0.8020	24522240	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
62	0.8432	24538680	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
63	0.8433	24539248	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
64	0.8451	24669272	IPS\IPS::exceptionHandler( )	..\Widget.php:747
65	0.8451	24669528	IPS\_Output->error( )	..\init.php:475
66	0.8498	24671296	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
67	0.8917	24687736	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
68	0.8918	24688304	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
69	0.8937	24827848	IPS\IPS::exceptionHandler( )	..\Widget.php:747
70	0.8937	24828104	IPS\_Output->error( )	..\init.php:475
71	0.8988	24960856	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
72	0.9431	24977296	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
73	0.9432	24977864	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
74	0.9451	25126928	IPS\IPS::exceptionHandler( )	..\Widget.php:747
75	0.9451	25127184	IPS\_Output->error( )	..\init.php:475
76	0.9502	25128952	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
77	0.9948	25145408	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
78	0.9949	25145976	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
79	0.9970	25304560	IPS\IPS::exceptionHandler( )	..\Widget.php:747
80	0.9970	25304816	IPS\_Output->error( )	..\init.php:475
81	1.0020	25306584	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
82	1.0470	25323024	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
83	1.0471	25323592	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
84	1.0495	25491712	IPS\IPS::exceptionHandler( )	..\Widget.php:747
85	1.0496	25491968	IPS\_Output->error( )	..\init.php:475
86	1.0543	25493736	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
87	1.1018	25510176	IPS\Theme\class_core_front_global->widgetContainer( )	..\Theme.php(624) : eval()'d code:3557
88	1.1019	25510744	IPS\_Widget->__toString( )	..\Theme.php(624) : eval()'d code:9926
89	1.1042	25688368	IPS\IPS::exceptionHandler( )	..\Widget.php:747
90	1.1042	25688624	IPS\_Output->error( )	..\init.php:475
91	1.1087	25690392	IPS\Theme\class_core_front_global->globalTemplate( )	..\Output.php:563
92	1.1094	25693392	IPS\Theme\class_core_global_global->includeMeta( )	..\Theme.php(624) : eval()'d code:3378
93	1.1095	25824664	IPS\Patterns\_ActiveRecord->__get( )	..\Theme.php(624) : eval()'d code:1047
94	1.1095	25825160	call_user_func:{D:\WampServer\www\system\Patterns\ActiveRecord.php:273} ( )	..\ActiveRecord.php:273
95	1.1095	25825160	IPS\_Theme->get_logo_sharer( )	..\ActiveRecord.php:273
96	1.1095	25825240	IPS\_Theme->logoImage( )	..\Theme.php:798
97	1.1095	25825240	IPS\_Theme::i( )	..\Theme.php:829
98	1.1096	25825240	IPS\_Theme::designersModeEnabled( )	..\Theme.php:184
99	1.1096	25825376	IPS\_Settings->__get( )	..\Theme.php:375

Share this post


Link to post
Share on other sites

Fresh install of RC4.

 

I pretty much install, activate, and drop the widget into the top area. It tells me to logoff to see the message, and I do. Refreshing the screen gets the error.

 

Once the error is displayed I have to uninstall the module, just deactivating it doesn't work.

 

Attached is a php info stats.

phpinfo.zip

Edited by mesteele101

Share this post


Link to post
Share on other sites

I just preformed a new upgrade to RC5 from 3.4.7. Installed the Guest module and for several times installing and removing, and enabling, and disabling, it now is working.

 

After the initial install of the Guest module I accessed the home page. I kept getting the error.html file displayed in the browser. I could disable the Guest module and the site would load normally. Enabling again would get the error again.

 

I guess it finally felt sorry for me and the site loaded normally. I found the widget in the block manager moved it to the center, it was added, i logged off and it works :)

 

Hopefully it will integrate much better when I preform a live install.

Edited by mesteele101

Share this post


Link to post
Share on other sites

It might be a caching issue. I've ran into this a few times now, I'll look into it further and then report it onto IPS if needed.

 

Ok, thanks...

 

Is it possible to have the picture displayed on the left side?

Share this post


Link to post
Share on other sites

Here is something odd. I can install another plugin and on refresh of the home page as guest I get the  error.html file displayed in the browser. I can go in a disable the guest plugin, refresh the page as guest and the page loads with no problem, but the guest message is still being displayed, even though I disabled it in the plugins. I can enable it in plugins and all is back to normal.

Share this post


Link to post
Share on other sites

Ok, thanks...

 

Is it possible to have the picture displayed on the left side?

 

Yes should just be a matter of updating the template from ipsPos_right to ipsPos_left.

 

Here is something odd. I can install another plugin and on refresh of the home page as guest I get the  error.html file displayed in the browser. I can go in a disable the guest plugin, refresh the page as guest and the page loads with no problem, but the guest message is still being displayed, even though I disabled it in the plugins. I can enable it in plugins and all is back to normal.

 

Keep in mind that the hook also is adding a copy of the guest message. You've disabled the setting for hooks when adding a widget?

Share this post


Link to post
Share on other sites

Yes should just be a matter of updating the template from ipsPos_right to ipsPos_left.

I'll give the above a try. But there is an issue below.

 

Keep in mind that the hook also is adding a copy of the guest message. You've disabled the setting for hooks when adding a widget?

I installed the plugin into RC6, "Enable hook" is turned off. Now I go back to my home page a refresh. I now get this message:

post-19037-0-62978700-1427472851_thumb.png

Share this post


Link to post
Share on other sites

Was that before or after you made the template edit? I'll probably need board access to troubleshoot this further. Chances are this could be an IPB4 bug itself.

Share this post


Link to post
Share on other sites

Seems the guest Image path is broken, missing an /uploads/

 

Most likely after the file storage changes in IPB 4.0.5. I'll try to have this patched before the end of this week.

Share this post


Link to post
Share on other sites

Hello all.

 

I've installed this on xampp in a IPB4.0.6.1 version and it works 100% so far.
But forgive me if I'm not in the right place here (and please delete my comment if so) but does anyone know and could help me with this "problem".

 

I've added 2 pictures in the guest message, and on every darker theme you can see a thin border around the picture.

Is it possible to make them go away? I've tried to find this myself, but IPB4 is new and difficult at the moment, and I can;t seem to find it :(

 

Thank you for this plugin and thank you for your answer.

Share this post


Link to post
Share on other sites

I've added 2 pictures in the guest message, and on every darker theme you can see a thin border around the picture.

Is it possible to make them go away? I've tried to find this myself, but IPB4 is new and difficult at the moment, and I can;t seem to find it :(

 

Could you provide a screenshot of what your talking about? If it's skin dependent, there might be some css that adds a border to the image.

Share this post


Link to post
Share on other sites

Thank you for your answer.
 
This is in the ACP
20fst4x.png
do7uw8.png
On the board I've tried it with 5 skins. And every skin has the border. Because the pictures are clickable I think that is why the border shows up29f2w4k.jpg

 

When I go to ACP-plugins- guest message and click on edit and click on source , I've tried to play with border=0px height and width etc, but the border won't go away. I'm getting a bit desperate :(

 

Thank you for reading my comment.
 

Edited by Diabeticus

Share this post


Link to post
Share on other sites

When I go to ACP-plugins- guest message and click on edit and click on source , I've tried to play with border=0px height and width etc, but the border won't go away. I'm getting a bit desperate

 

Have you tried editing the Guest Message template bit instead? For example if you wrapped the following code with a different style and then force it to remove the image border.

        {{if $message = str_replace( '%board_name%', \IPS\Settings::i()->board_name, \IPS\Member::loggedIn()->language()->get( 'gm_message_value' ) )}}
            {$message|raw}
        {{endif}}

Share this post


Link to post
Share on other sites

I have tried it in some php files, en in source. The code you have mentioned, I've found it, but not sure what to do.. I'm gonna try it right now...
Will report tomorrow..

 

PS: You are the creator (under the page is your name Guest Message by DevFuse) don't you have borders?

Share this post


Link to post
Share on other sites

I have tried it in some php files, en in source. The code you have mentioned, I've found it, but not sure what to do.. I'm gonna try it right now...

 

Try in the template bit, in ACP > Customizations > select skin > core > global > plugins > guestMessage

 

Find:

        {{if $message = str_replace( '%board_name%', \IPS\Settings::i()->board_name, \IPS\Member::loggedIn()->language()->get( 'gm_message_value' ) )}}
            {$message|raw}
        {{endif}}

Replace With:

      <style type="text/css">
        #guestMessage .ipsImage{
          border: 0;
        }
      </style>
        
      <div id='guestMessage'>
        {{if $message = str_replace( '%board_name%', \IPS\Settings::i()->board_name, \IPS\Member::loggedIn()->language()->get( 'gm_message_value' ) )}}
            {$message|raw}
        {{endif}}
      </div>

You can obviously optimize the code further but you get the idea.

Share this post


Link to post
Share on other sites

Hello Michael.

 

Sorry for not answerring earlier, but I just tried your code and the border is gone... (*bow*)

 

I have tried to play around in that code before, but not the way you did.

Thank you very much for your help. And thank you or/and devfuse for this plugin.

 

Regards from me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×